Skip to content

Commit a22e9df

Browse files
committed
refact: 삭제된 같이가요 로고 새로고침 기능 재구현
1 parent cd9b360 commit a22e9df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/home/ui/MainPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ const MainPage = () => {
2626
link: `/event-details/${event.id}`,
2727
}));
2828

29+
const handleRefresh = () => {
30+
navigate('/');
31+
window.location.reload();
32+
};
33+
2934
return (
3035
<div className="flex flex-col items-center pb-24">
3136
<Header
@@ -38,7 +43,7 @@ const MainPage = () => {
3843
/>
3944
}
4045
leftButtonClassName="sm:text-lg md:text-xl lg:text-2xl font-extrabold font-nexon"
41-
leftButtonClick={() => {}}
46+
leftButtonClick={handleRefresh}
4247
leftButtonLabel="같이가요"
4348
rightContent={
4449
isLoggedIn ? (

0 commit comments

Comments
 (0)