Skip to content

Commit

Permalink
feat: test2
Browse files Browse the repository at this point in the history
  • Loading branch information
sikkzz authored and lgrin-byte committed Feb 8, 2025
1 parent a82c18f commit 81a1c59
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 { navigateToReceiptEdit } = useRoute();

Expand All @@ -33,6 +34,7 @@ const Home = () => {
receiveScanResult: (jsonData: string) => {
try {
const data: ScanResult[] = JSON.parse(jsonData);
setAbc(true);
setScanData(data);
// navigateToReceiptEdit();
} catch (error) {
Expand All @@ -46,6 +48,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 81a1c59

Please sign in to comment.