-
Notifications
You must be signed in to change notification settings - Fork 4
✨ Feat: 가게 등록 공고 조회 / 무한스크롤 구현 #86
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2d24f6a
✨ Feat: 가게 등록 공고 조회 / 무한스크롤 구현
BaeZzi813 d8e4b5b
♻️ Refact: user 가 guest / employee 모달 노출 후 리다이렉트
BaeZzi813 066b7fc
Merge branch 'develop' of https://github.com/codeit-FE18-part3/Thejul…
BaeZzi813 a27a12d
fix: type 오류 import 재정의
BaeZzi813 0f0c8ec
fix: RegisterFormData 사용부분 전체 재정의
BaeZzi813 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,46 @@ | ||
| import { Modal } from '@/components/ui'; | ||
| import { useRouter } from 'next/router'; | ||
|
|
||
| interface Props { | ||
| guestRedirect: boolean; | ||
| setGuestRedirect: (value: boolean) => void; | ||
| employeeRedirect: boolean; | ||
| setEmployeeRedirect: (value: boolean) => void; | ||
| } | ||
|
|
||
| const IndexModal = ({ | ||
| guestRedirect, | ||
| setGuestRedirect, | ||
| employeeRedirect, | ||
| setEmployeeRedirect, | ||
| }: Props) => { | ||
| const router = useRouter(); | ||
| return ( | ||
| <> | ||
| <Modal | ||
| open={guestRedirect} | ||
| onClose={() => setGuestRedirect(false)} | ||
| variant='warning' | ||
| title='로그인이 필요합니다.' | ||
| primaryText='확인' | ||
| onPrimary={() => { | ||
| setGuestRedirect(false); | ||
| router.push('/login'); | ||
| }} | ||
| /> | ||
| <Modal | ||
| open={employeeRedirect} | ||
| onClose={() => setEmployeeRedirect(false)} | ||
| variant='warning' | ||
| title='접근권한이 없습니다.' | ||
| primaryText='확인' | ||
| onPrimary={() => { | ||
| setEmployeeRedirect(false); | ||
| router.push('/'); | ||
| }} | ||
| /> | ||
| </> | ||
| ); | ||
| }; | ||
|
|
||
| export default IndexModal; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
파일 : ./src/api/employer.ts:2:8
내용 : Type error: Module '"/vercel/path0/src/types/myShop"' has no default export. Did you mean to use 'import { RegisterFormData } from "/vercel/path0/src/types/myShop"' instead?
위치 : import RegisterFormData from '@/types/myShop';
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.
네 수정했습니다!
Uh oh!
There was an error while loading. Please reload this page.
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.
./src/components/features/my-shop/registerAddress.tsx:3:8
Type error: Module '"/vercel/path0/src/types/myShop"'
import RegisterFormData from '@/types/myShop';
부분도 수정부탁드립니다!
이렇게 검색되어서 나오는 부분은 전부 export 수정해주셔야 합니다!