diff --git a/src/app/page.tsx b/src/app/page.tsx index 3e4b6b5..7ee3910 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,13 +5,13 @@ export default function Home() { return (
-

予約システム

+

Reservation System

- お客様ページ + Customer Page - ストア管理ページ + Store Management Page
diff --git a/src/app/store/StoreList.tsx b/src/app/store/StoreList.tsx index aba6cbb..22fe845 100644 --- a/src/app/store/StoreList.tsx +++ b/src/app/store/StoreList.tsx @@ -3,6 +3,7 @@ import { useEffect, useState } from "react"; import { Store } from "@/utils/type"; import { listStores } from "@/utils/store/management"; import { useActiveAccount } from "thirdweb/react"; +import RegisterStorePopup from "@/components/RegisterStore"; export default function StoreList({ setStore }: { setStore: (store: Store) => void }) { const [stores, setStores] = useState([]); @@ -17,25 +18,28 @@ export default function StoreList({ setStore }: { setStore: (store: Store) => vo }, [account]); return ( -
-

ストア一覧

+
+

ストア一覧

{stores.length > 0 ? ( -
    +
      {stores.map((store, index) => (
    • setStore(store)} > -
      {store.storeName}
      -
      ストアID: {store.storeId.toString()}
      -
      ストア管理者: {store.storeAdmin}
      +
      {store.storeName}
      +
      ストアID: {store.storeId.toString()}
      +
      ストア管理者: {store.storeAdmin}
    • ))}
    ) : ( -

    管理しているストアがありません。

    +

    管理しているストアがありません。

    )} +
    + +
); } \ No newline at end of file diff --git a/src/app/store/page.tsx b/src/app/store/page.tsx index f0e7ce3..407fc2e 100644 --- a/src/app/store/page.tsx +++ b/src/app/store/page.tsx @@ -1,11 +1,8 @@ "use client"; -import QRCodeGenerator from "@/components/QRCodeGenerator"; import Link from "next/link"; -import { ConnectButton, TransactionButton } from "thirdweb/react"; +import { ConnectButton } from "thirdweb/react"; import { client } from "../client"; -import { registerReservationSlot } from "@/utils/store/service"; -import RegisterStorePopup from "@/components/RegisterStore"; import { useState } from "react"; import NewService from "./new-service"; import ServiceList from "./service-list"; @@ -73,49 +70,43 @@ export default function StorePage() { />
-
- -
-
diff --git a/src/components/RegisterStore.tsx b/src/components/RegisterStore.tsx index f4a8e12..54ffbe7 100644 --- a/src/components/RegisterStore.tsx +++ b/src/components/RegisterStore.tsx @@ -19,16 +19,16 @@ function RegisterStorePopup() { }} className="px-4 py-2 rounded bg-blue-500 text-white" > - ストア登録 + Store Registration {showPopup && (
-

ストア登録

+

Store Registration

- +