-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use info logic/#82 #86
Conversation
โฆete functionality
๐storybook: https://65ccb85d5afe55a024495bc0-lkxupopumf.chromatic.com/ |
๐storybook: https://65ccb85d5afe55a024495bc0-tvdfatqzfn.chromatic.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ จ์ต๋๋ค!
export async function signOut() { | ||
cookies().delete('accessToken'); | ||
cookies().delete('refreshToken'); | ||
|
||
redirect('/sign-in'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async ํค์๋๊ฐ ์กด์ฌํ๋๋ฐ ํน์ ์ด์ ๊ฐ ์์๊น์?
@@ -2,6 +2,7 @@ export const DIALOG_KEY = { | |||
RESULT_CATEGORY: 'RESULT_CATEGORY', | |||
DIALOG_TEST: 'DIALOG_TEST', | |||
LECTURE_SEARCH: 'LECTURE_SEARCH', | |||
USER_DEELETE: 'USER_DEELETE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
USER_DEELETE: 'USER_DEELETE', | |
USER_DELETE: 'USER_DELETE', |
const allowdPath = strict ? allowdOnlyGuestPath : allowdGuestPath; | ||
return allowdPath.some((allowedPath) => path.startsWith(allowedPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const allowdPath = strict ? allowdOnlyGuestPath : allowdGuestPath; | |
return allowdPath.some((allowedPath) => path.startsWith(allowedPath)); | |
const allowedPath = strict ? allowedOnlyGuestPath : allowedGuestPath; | |
return allowedPath.some((allowedPath) => path.startsWith(allowedPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด ์ปดํฌ๋ํธ๋ฅผ ๊ตฌํํ์ ์ด์ ๊ฐ ์์๊น์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user ํ์ผ์ด ํ์คํ ๊ธธ์ด์ง๊ธด ํ๋ค์ user๋ auth ํ์ผ์ ๋ถ๋ฆฌํ์๋ ๊ฑด ์ด๋ค๊ฐ์?
const handleModalToggle = () => { | ||
toggle(); | ||
}; | ||
|
||
return <Button onClick={handleModalToggle} size="sm" variant="text" label="ํ์ํํดํ๊ธฐ" />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onClick = {toggle} ๋ก ์ ์ ์๋ ์๋๋ฐ ๋ฐ๋ก handleModalToggle ํจ์๋ฅผ ๋ง๋์ ์ด์ ๊ฐ ์์๊น์?
๐ ์์ ๋ด์ฉ
๐ค ๊ณ ๋ฏผ ํ๋ ๋ถ๋ถ
๐ ๋์์ด ํ์ํ ๋ถ๋ถ