Skip to content

Commit

Permalink
docs: 린트 당함
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbeann committed Jan 18, 2024
1 parent 99cdd24 commit 7e0b18b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/CreateBook/page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function CreateBook() {
const [title, setTitle] = useState('');
const [description, setDescription] = useState('');
const [backgroundColor, setBackgroundColor] = useState('#F5F5F5');
const location = useLocation();
const navigate = useNavigate();
const location = useLocation();
const { presignedFileName, name } = location.state || {};

const handleClickCompleteButton = async () => {
Expand All @@ -36,11 +36,15 @@ function CreateBook() {
<S.CreateBookBodyWrapper>
<S.InputWrapper>
<S.BookInputWrapper>
<S.SectionTitle variant={backgroundColor==="#191919"}>레큐북 제목</S.SectionTitle>
<S.SectionTitle variant={backgroundColor === '#191919'}>
레큐북 제목
</S.SectionTitle>
<BookInput title={title} changeTitle={(title) => setTitle(title)} />
</S.BookInputWrapper>
<S.BookInfoTextareaWrapper>
<S.SectionTitle variant={backgroundColor==="#191919"}>레큐북 소개</S.SectionTitle>
<S.SectionTitle variant={backgroundColor === '#191919'}>
레큐북 소개
</S.SectionTitle>
<BookInfoTextarea
description={description}
changeDescription={(description) => setDescription(description)}
Expand All @@ -54,7 +58,7 @@ function CreateBook() {
/>
</S.InputWrapper>
<CompleteButton
backgroundColor={backgroundColor}
backgroundColor={backgroundColor}
isActive={title.length !== 0 && description.length !== 0}
onClick={handleClickCompleteButton}
/>
Expand Down

0 comments on commit 7e0b18b

Please sign in to comment.