@@ -16,9 +16,12 @@ import Styled, { bottomSheetOverrides } from './ProfilePage.styles';
1616import Layout from '~/components/Layout' ;
1717import { useUserByUserCodeV2 } from '@boolti/api' ;
1818import { formatDateTimeWithWeekday , formatDateWithWeekday } from '~/utils' ;
19+ import { navigateToAppScheme } from '~/utils/app' ;
20+ import { openStoreLink } from '~/utils/link' ;
1921import { Meta } from '~/components/Meta' ;
2022import { PROFILE_URL } from '~/constants/url' ;
2123import { EXTERNAL_URL } from '~/constants/external' ;
24+ import { SCHEMES } from '~/constants/schemes' ;
2225import VideoCard from '~/components/VideoCard' ;
2326import NotFound from '~/components/Notfound' ;
2427import { QRCodeSVG } from 'qrcode.react' ;
@@ -89,8 +92,15 @@ const ProfilePage = () => {
8992 return url ;
9093 } ;
9194
92- const reservationButtonClickHandler = ( isDesktop : boolean ) => {
93- if ( ! isDesktop ) return ;
95+ const reservationButtonClickHandler = async ( isDesktop : boolean ) => {
96+ if ( ! isDesktop ) {
97+ const success = await navigateToAppScheme ( SCHEMES . 브릿지_스토어 ( ) ) ;
98+
99+ if ( ! success ) {
100+ openStoreLink ( ) ;
101+ }
102+ return ;
103+ }
94104
95105 dialog . open ( {
96106 title : '불티 앱에서 프로필 만들기' ,
@@ -122,7 +132,6 @@ const ProfilePage = () => {
122132 const instagramAccount = profile . sns . find ( ( sns ) => sns . type === 'INSTAGRAM' ) ;
123133 const youtubeAccount = profile . sns . find ( ( sns ) => sns . type === 'YOUTUBE' ) ;
124134
125- console . log ( profile ) ;
126135 return (
127136 < >
128137 < Global styles = { bottomSheetOverrides } />
0 commit comments