File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1- import { useEffect } from "react" ;
1+ import { useEffect , useState } from "react" ;
22
33import styles from "@/components/Home/Home.module.scss" ;
44import { AppBridgeMessageType } from "@/components/provider/AppBridgeProvider/AppBridgeMessage.types" ;
@@ -15,6 +15,7 @@ export interface ScanResult {
1515}
1616
1717const Home = ( ) => {
18+ const [ abc , setAbc ] = useState ( false ) ;
1819 const { send } = useAppBridge ( ) ;
1920
2021 const { scanData, setScanData } = useScanDataStore ( ) ;
@@ -26,6 +27,7 @@ const Home = () => {
2627 receiveScanResult : ( jsonData : string ) => {
2728 try {
2829 const data : ScanResult [ ] = JSON . parse ( jsonData ) ;
30+ setAbc ( true ) ;
2931 setScanData ( data ) ;
3032 // navigateToReceiptEdit();
3133 } catch ( error ) {
@@ -39,6 +41,7 @@ const Home = () => {
3941 < div className = { styles . Home } >
4042 < div className = { styles . HomeTitle } >
4143 < Text variant = "titleLg" color = "gradient" align = "center" as = "h1" >
44+ { abc && "스캔 완료 테스트용" }
4245 { `영수증으로\nAI 음식 리뷰 남겨요` }
4346 </ Text >
4447 < Text variant = "bodyLg" color = "secondary" align = "center" >
You can’t perform that action at this time.
0 commit comments