Skip to content

Commit b23cf61

Browse files
committed
feat: 모임 초대 딥링크 연결
1 parent ba9228b commit b23cf61

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

apps/tuk-web/src/app/invite/gathering/[gatheringId]/src/components/InviteGathering.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ import { InviteCard, TukLogo } from '@/app/invite/meet/[meetId]/src/components/I
66
import { Button } from '@/shared/components';
77
import AppInstallBanner from '@/shared/components/AppInstallBanner';
88
import InviteCardFrame from '@/shared/components/InviteCardFrame';
9+
import { useParam } from '@/shared/hooks/useParam';
910
import { cn } from '@/shared/lib';
1011

1112
const BANNER_KEY = 'gathering-banner-dismissed-at';
1213
const BANNER_RESHOW_MINUTES = 30;
1314

1415
const InviteGathering = () => {
16+
const gatheringId = Number(useParam('gatheringId'));
17+
1518
const [showBanner, setShowBanner] = useState(false);
1619
const [animateCardIn, setAnimateCardIn] = useState(false);
1720

@@ -68,7 +71,14 @@ const InviteGathering = () => {
6871
</div>
6972

7073
<div className="fixed bottom-0 left-0 z-30 w-full bg-gradient-to-b from-white-default/0 to-white-default px-5 py-6">
71-
<Button className="w-full">입장하기</Button>
74+
<Button
75+
className="w-full"
76+
onClick={() =>
77+
(window.location.href = `tuk-app://tuk/join-gathering?gatheringId=${gatheringId}`)
78+
}
79+
>
80+
입장하기
81+
</Button>
7282
</div>
7383
</div>
7484
);

0 commit comments

Comments
 (0)