Skip to content

Commit 56c590f

Browse files
committed
feat: test2
1 parent 9eafb7d commit 56c590f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Home/Home.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect } from "react";
1+
import { useEffect, useState } from "react";
22

33
import styles from "@/components/Home/Home.module.scss";
44
import { AppBridgeMessageType } from "@/components/provider/AppBridgeProvider/AppBridgeMessage.types";
@@ -15,6 +15,7 @@ export interface ScanResult {
1515
}
1616

1717
const 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">

0 commit comments

Comments
 (0)