-
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.
Merge remote-tracking branch 'origin' into feat/homin/KAN-105-dark-mode
- Loading branch information
Showing
45 changed files
with
1,101 additions
and
556 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
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,11 @@ | ||
const EmptyReviewPage = () => { | ||
return ( | ||
<div className='flex h-full items-center justify-center'> | ||
<p className='text-center text-14 font-medium text-var-gray-500 dark:text-neutral-200'> | ||
아직 작성한 리뷰가 없어요. | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EmptyReviewPage; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
'use client'; | ||
|
||
import Chip from '@/app/components/Chip/Chip'; | ||
import { useRouter, usePathname } from 'next/navigation'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
type filterType = 'writable' | 'written'; | ||
|
||
const ReviewFilterTab = () => { | ||
const filterTypeButtons = [ | ||
{ name: '작성 가능한 리뷰', type: 'writable' }, | ||
{ name: '작성한 리뷰', type: 'written' }, | ||
]; | ||
|
||
const [currentFilterType, setCurrentFilterType] = useState<filterType | null>( | ||
null, | ||
); | ||
|
||
const router = useRouter(); | ||
const pathname = usePathname(); | ||
|
||
useEffect(() => { | ||
const path = pathname.replace('/mypage/review/', '') as filterType; | ||
setCurrentFilterType(path); | ||
}, [pathname]); | ||
|
||
const handleChangeFilterType = (filterType: filterType) => { | ||
router.push(`/mypage/review/${filterType}`); | ||
}; | ||
|
||
return ( | ||
<div className='flex items-center gap-8'> | ||
{filterTypeButtons.map((filterType) => ( | ||
<button | ||
key={filterType.name} | ||
onClick={() => handleChangeFilterType(filterType.type as filterType)} | ||
className='transition-all duration-200 ease-in-out' | ||
> | ||
<Chip | ||
state={currentFilterType === filterType.type ? 'active' : 'default'} | ||
> | ||
{filterType.name} | ||
</Chip> | ||
</button> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default ReviewFilterTab; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.