1- import { Header } from '@/shared/components' ;
2- import AddressCopy from '@/shared/components/button/AddressCopy' ;
3- import LocationCard from '@/shared/components/container/LocationCard' ;
1+ import { AddressCopy , Header , LocationCard } from '@/shared/components' ;
42import { Icon } from '@/shared/icons' ;
53import { cn } from '@/shared/lib' ;
64import { getLocation } from '@/shared/utils/handleGetLocation' ;
@@ -10,7 +8,7 @@ import { useRouter } from 'next/router';
108const Board = ( ) => {
119 const router = useRouter ( ) ;
1210 const { label } = router . query ;
13- const isStamp = true ;
11+ const isStamp = false ;
1412
1513 return (
1614 < div className = 'relative w-full h-[100vh] overflow-auto px-[2.4rem]' >
@@ -27,19 +25,25 @@ const Board = () => {
2725 width = { 354 }
2826 height = { 436 }
2927 className = { cn (
30- 'w-full h-auto object-cover block rounded-[1.6rem ] transition-all duration-300' ,
28+ 'w-full h-auto object-cover block rounded-[16px ] transition-all duration-300' ,
3129 ! isStamp && 'blur-xs brightness-90' ,
3230 ) }
3331 />
3432
3533 < button
3634 className = { cn ( 'absolute bottom-0 right-0' , isStamp && 'p-[2.5rem]' ) }
37- onClick = { ( ) =>
38- getLocation (
39- ( pos ) => console . log ( '📍 현재 위치:' , pos . coords ) ,
40- ( err ) => console . error ( '⚠️ 위치 에러:' , err . message ) ,
41- //TODO : 리워드 페이지로 이동 , 위치 에러일경우 모달창
42- )
35+ onClick = {
36+ ! isStamp
37+ ? ( ) => {
38+ getLocation (
39+ ( pos ) => console . log ( '📍 현재 위치:' , pos . coords ) ,
40+ ( err ) => console . error ( '⚠️ 위치 에러:' , err . message ) ,
41+ ) ;
42+ router . push ( {
43+ pathname : '/main/HiddenReward' ,
44+ } ) ;
45+ }
46+ : undefined
4347 }
4448 >
4549 < Icon
0 commit comments