File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
pages/GiftRegisterPage/components/GiftInformation Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ export const SCHEMES = {
2+ 선물_등록 : ( giftId : string ) => `boolti:///gift/${ giftId } ` ,
3+ } ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { useDeviceWidth } from '~/hooks/useDeviceWidth';
99import { useTheme } from '@emotion/react' ;
1010import { LINK } from '~/constants/link' ;
1111import { navigateToAppScheme } from '~/utils/app' ;
12+ import { SCHEMES } from '~/constants/schemes' ;
13+ import { openStoreLink } from '~/utils/link' ;
1214
1315const GiftInformation = ( ) => {
1416 const { giftId = '' } = useParams < { giftId : string } > ( ) ;
@@ -53,7 +55,11 @@ const GiftInformation = () => {
5355 return ;
5456 }
5557
56- navigateToAppScheme ( `boolti://gift/${ giftId } ` ) ;
58+ const success = navigateToAppScheme ( SCHEMES . 선물_등록 ( giftId ) ) ;
59+
60+ if ( ! success ) {
61+ openStoreLink ( ) ;
62+ }
5763 } ;
5864
5965 return (
Original file line number Diff line number Diff line change 1- import { openStoreLink } from './link' ;
2-
31export const navigateToAppScheme = async ( appScheme : string ) => {
42 let timerId : ReturnType < typeof setTimeout > ;
53
@@ -34,8 +32,6 @@ export const navigateToAppScheme = async (appScheme: string) => {
3432
3533 if ( elapsedTime < 1_500 ) {
3634 resolve ( false ) ;
37-
38- openStoreLink ( ) ;
3935 } else {
4036 resolve ( false ) ;
4137 }
You can’t perform that action at this time.
0 commit comments