Skip to content

Commit

Permalink
feat: test2
Browse files Browse the repository at this point in the history
  • Loading branch information
sikkzz committed Feb 8, 2025
1 parent 9eafb7d commit 56c590f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect } from "react";
import { useEffect, useState } from "react";

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

const Home = () => {
const [abc, setAbc] = useState(false);
const { send } = useAppBridge();

const { scanData, setScanData } = useScanDataStore();
Expand All @@ -26,6 +27,7 @@ const Home = () => {
receiveScanResult: (jsonData: string) => {
try {
const data: ScanResult[] = JSON.parse(jsonData);
setAbc(true);
setScanData(data);
// navigateToReceiptEdit();
} catch (error) {
Expand All @@ -39,6 +41,7 @@ const Home = () => {
<div className={styles.Home}>
<div className={styles.HomeTitle}>
<Text variant="titleLg" color="gradient" align="center" as="h1">
{abc && "스캔 완료 테스트용"}
{`영수증으로\nAI 음식 리뷰 남겨요`}
</Text>
<Text variant="bodyLg" color="secondary" align="center">
Expand Down

0 comments on commit 56c590f

Please sign in to comment.