Skip to content

Commit

Permalink
자잘한 수정 v1
Browse files Browse the repository at this point in the history
  • Loading branch information
D5ng committed Jun 24, 2024
1 parent 574605e commit d511979
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions pages/calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function CalendarPage() {
const monthlyTodosQuery = useMonthlyTodosQuery(yearMonth);
const dailyTodosQuery = useDailyTodosQuery(yearMonthDate);

if (!dailyTodosQuery.isFetchedAfterMount) return;
if (dailyTodosQuery.isPending || monthlyTodosQuery.isPending) return <p>loading</p>;
if (dailyTodosQuery.isError || monthlyTodosQuery.isError) return <p>Error</p>;

Expand Down Expand Up @@ -60,7 +59,7 @@ export default function CalendarPage() {
</div>
<CalendarMonthly monthlyTodos={monthlyTodosQuery.data} />
<CalendarTodoDate />
<CalendarTodos dailyTodos={dailyTodosQuery.data} />
{dailyTodosQuery.isFetchedAfterMount && <CalendarTodos dailyTodos={dailyTodosQuery.data} />}
<CreateTodoButton />
</Calendar>
</main>
Expand Down
4 changes: 4 additions & 0 deletions pages/diaries/[diaryId]/edit/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.button-container {
margin: 0 24px;
}

.submit {
width: 100%;
padding: 14px;
Expand Down
2 changes: 1 addition & 1 deletion pages/diaries/[diaryId]/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function DiaryEditPage(props: InferGetServerSidePropsType<typeof
<DiaryEditShare />
<DiaryEditDate initialDate={props.diaryData.date} />

<div className={styles.button}>
<div className={styles['button-container']}>
<button
className={classNames(styles.submit, {
[styles.disabled]: !isValid,
Expand Down
2 changes: 1 addition & 1 deletion pages/diaries/create/create.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.petSelect {
padding: 0 24px;
margin-top: 30px;
margin: 30px 0;
}

.pets {
Expand Down
2 changes: 1 addition & 1 deletion pages/diaries/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function DiaryCreate() {
</PetSelect>
</div>
<MemoItem register={register} fieldName="content" />
<hr className={styles.division} />
{/* <hr className={styles.division} /> */}

<WeatherItem />

Expand Down
1 change: 0 additions & 1 deletion pages/growth/[growthId]/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export default function GrowthModify({ growthId }: InferGetServerSidePropsType<t
</div>
{errors.petName && <p className={styles.error}>{errors.petName.message}</p>}
</div>
<div className={styles.division}></div>
<MemoItem register={register} fieldName="content.memo" defaultValue={memo} />

<div className={styles.categorySelectorOuter}>
Expand Down
1 change: 0 additions & 1 deletion pages/growth/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export default function CreateGrowth() {
</div>
{errors.petName && <p className={styles.error}>{errors.petName.message}</p>}
</div>
<div className={styles.division}></div>
<MemoItem register={register} fieldName="content.memo" />
<div className={styles.categorySelectorOuter}>
<div className={styles.categorySelectorInner}>
Expand Down

0 comments on commit d511979

Please sign in to comment.