-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: add update page * fix: fix refactor form * fix: fix validate question * fix: fix style for float button err * fix: fix design system build err
- Loading branch information
Showing
16 changed files
with
217 additions
and
137 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
packages/client/app/(withLayout)/question/update/[id]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ClientQuestionUpdatePage } from 'src/clientPages/questionUpdate' | ||
|
||
export default function QuestionUpdatePage() { | ||
return ( | ||
<div> | ||
<ClientQuestionUpdatePage /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
packages/client/src/clientPages/questionCreate/ui/ClientQuestionCreatePage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ClientQuestionUpdatePage } from './ui/ClientQuestionUpdatePage' |
20 changes: 20 additions & 0 deletions
20
packages/client/src/clientPages/questionUpdate/ui/ClientQuestionUpdatePage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use client' | ||
|
||
import { | ||
useQuestionForm, | ||
QUSETION_FORM_DEFAULT_VALUES, | ||
} from '@entities/question' | ||
|
||
import { QuestionUpdateInputs } from '@widgets/QuestionUpdateInputs' | ||
|
||
export function ClientQuestionUpdatePage() { | ||
const form = useQuestionForm(QUSETION_FORM_DEFAULT_VALUES) | ||
// api 연동시 onSubmit 함수 구현 | ||
|
||
return ( | ||
<QuestionUpdateInputs | ||
form={form} | ||
onSubmit={() => alert('TODO: submit')} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { useCreateQuestionForm } from './lib/useQuestionCreateForm' | ||
export { useQuestionForm } from './lib/hook/useQuestionCreateForm' | ||
|
||
export type { QuestionFormValues } from './lib/useQuestionCreateForm' | ||
export type { QuestionFormValues } from './lib/hook/useQuestionCreateForm' | ||
export { QUSETION_FORM_DEFAULT_VALUES } from './model/questionFormDefaultValue' | ||
export { useValidateQuestion } from './lib/hook/useValidateQuestion' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
packages/client/src/entities/question/model/questionFormDefaultValue.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { QuestionFormValues } from '../lib/hook/useQuestionCreateForm' | ||
|
||
export const QUSETION_FORM_DEFAULT_VALUES: QuestionFormValues = { | ||
title: '', | ||
content: '', | ||
jobCategory: null, | ||
reward: 1000, | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/client/src/widgets/QuestionCreateInputs/ui/QuestionCreateInputs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { QuestionUpdateInputs } from './ui/QuestionUpdateInputs' |
Oops, something went wrong.