-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from jeiltodo/develop
Develop
- Loading branch information
Showing
71 changed files
with
1,097 additions
and
701 deletions.
There are no files selected for viewing
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,15 @@ | ||
module.exports = { | ||
extends: ['@jeiltodo/eslint-config/next.js'], | ||
}; | ||
extends: ['@jeiltodo/eslint-config/next.js'], | ||
rules: { | ||
'react/function-component-definition': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'eslint-disable tsdoc/syntax': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/no-confusing-void-expression': 'off', | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'react/jsx-no-leaked-render': 'off', | ||
'react/jsx-sort-props': 'off', | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { LoginPage } from '../../../page/auth'; | ||
|
||
export default function Login() { | ||
export default function Page() { | ||
return <LoginPage />; | ||
} |
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,5 +1,5 @@ | ||
import { SignUpPage } from '../../../page/auth'; | ||
|
||
export default function Signup() { | ||
export default function Page() { | ||
return <SignUpPage />; | ||
} |
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,7 @@ | ||
export default function GroupRootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}): JSX.Element { | ||
return <main className='common-layout bg-slate-100'>{children}</main> | ||
} |
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
File renamed without changes.
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.
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
14 changes: 0 additions & 14 deletions
14
apps/user/src/app/(dashboard)/note/temporary-note/layout.tsx
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
apps/user/src/app/(dashboard)/note/temporary-note/page.tsx
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import { TodoPage } from '../../../page/todo'; | ||
|
||
export default function Page() { | ||
return ( | ||
<main className='pt-4'> | ||
<TodoPage /> | ||
</main> | ||
); | ||
return <TodoPage />; | ||
} |
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,15 @@ | ||
import { useMutation, useQueryClient } from '@tanstack/react-query'; | ||
import { createNote, NotePostParam } from '../api/noteApi'; | ||
|
||
export const useCreateNote = (todoId: number) => { | ||
const queryClient = useQueryClient(); | ||
return useMutation({ | ||
mutationFn: (note: Omit<NotePostParam, 'todoId'>) => | ||
createNote(todoId, note), | ||
onSuccess: () => { | ||
queryClient.invalidateQueries({ | ||
predicate: (query) => query.queryKey.includes('notes'), | ||
}); | ||
}, | ||
}); | ||
}; |
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,17 @@ | ||
import { useMutation, useQueryClient } from '@tanstack/react-query'; | ||
import { deleteNote } from '../api/noteApi'; | ||
|
||
export const useDeleteNote = (noteId: number) => { | ||
const queryClient = useQueryClient(); | ||
return useMutation({ | ||
mutationFn: () => deleteNote(noteId), | ||
onSuccess: () => { | ||
queryClient.invalidateQueries({ | ||
predicate: (query) => query.queryKey.includes('notes'), | ||
}); | ||
queryClient.invalidateQueries({ | ||
predicate: (query) => query.queryKey.includes('todos'), | ||
}); | ||
}, | ||
}); | ||
}; |
Oops, something went wrong.