From 42b52f145e32bd12d8e551ac20c9d30f71940c1f Mon Sep 17 00:00:00 2001 From: hikahana <22.h.hanada.nutfes@gmail.com> Date: Thu, 7 Nov 2024 10:13:09 +0000 Subject: [PATCH] =?UTF-8?q?graphql=E3=81=AEimport=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/PrizeResult/PrizeResult.tsx | 12 ++++++------ .../UpdateNumberModal/UpdateNumberModal.tsx | 8 ++++---- view-admin/src/pages/index.tsx | 16 +++++++--------- view-admin/src/pages/postPrizes/index.tsx | 13 +++++-------- view-admin/src/pages/prizes/index.tsx | 3 +-- view-user/src/components/Layout/Layout.tsx | 12 +++++------- .../cards/NumberCardList/NumberCardList.tsx | 2 +- .../cards/NumberCardSmall/NumberCardSmall.tsx | 2 +- .../common/cards/PrizeCard/PrizeCard.tsx | 2 +- view-user/src/pages/index.tsx | 6 ++++-- view-user/src/pages/prizes/index.tsx | 6 ++---- 11 files changed, 37 insertions(+), 45 deletions(-) diff --git a/view-admin/src/components/common/PrizeResult/PrizeResult.tsx b/view-admin/src/components/common/PrizeResult/PrizeResult.tsx index 2ded830d..5edf0eed 100644 --- a/view-admin/src/components/common/PrizeResult/PrizeResult.tsx +++ b/view-admin/src/components/common/PrizeResult/PrizeResult.tsx @@ -1,13 +1,13 @@ import React, { useState } from "react"; import styles from "./PrizeResult.module.css"; import { useMutation } from "@apollo/client"; -import { UpdateOnePrizeIsWonDocument } from "@/type/graphql"; -import Image from "next/image"; -import type { - UpdateOnePrizeIsWonMutation, - UpdateOnePrizeIsWonMutationVariables, - GetListPrizesQuery, +import { + UpdateOnePrizeIsWonDocument, + type UpdateOnePrizeIsWonMutation, + type UpdateOnePrizeIsWonMutationVariables, + type GetListPrizesQuery, } from "@/type/graphql"; +import Image from "next/image"; interface PrizeResultProps { prizeResult: GetListPrizesQuery["prizes"]; diff --git a/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx b/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx index 7720506f..8f8f49f3 100644 --- a/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx +++ b/view-admin/src/components/common/UpdateNumberModal/UpdateNumberModal.tsx @@ -2,10 +2,10 @@ import React, { useState } from "react"; import styles from "./UpdateNumberModal.module.css"; import { RxCrossCircled } from "react-icons/rx"; import { useMutation } from "@apollo/client"; -import { UpdateOneNumberDocument } from "@/type/graphql"; -import type { - UpdateOneNumberMutation, - UpdateOneNumberMutationVariables, +import { + UpdateOneNumberDocument, + type UpdateOneNumberMutation, + type UpdateOneNumberMutationVariables, } from "@/type/graphql"; interface UpdateNumberModalProps { diff --git a/view-admin/src/pages/index.tsx b/view-admin/src/pages/index.tsx index 6fb9ed30..a045703e 100644 --- a/view-admin/src/pages/index.tsx +++ b/view-admin/src/pages/index.tsx @@ -19,11 +19,9 @@ import { SubscribeListNumbersDocument, IncrementReachNumDocument, DecrementReachNumDocument, -} from "@/type/graphql"; -import type { - SubscribeListNumbersSubscription, - IncrementReachNumMutation, - DecrementReachNumMutation, + type SubscribeListNumbersSubscription, + type IncrementReachNumMutation, + type DecrementReachNumMutation, } from "@/type/graphql"; interface formDataCreate { @@ -43,7 +41,7 @@ const Page: NextPage = () => { SubscribeListNumbersSubscription["numbers"] >([]); const [isOpened, setIsOpened] = useState(false); - const isopenBool = () => setIsOpened(!isOpened); + const isOpenBool = () => setIsOpened(!isOpened); const [isOpenUpdateNumberModal, setIsOpenUpdateNumberModal] = useState(false); @@ -143,7 +141,7 @@ const Page: NextPage = () => { >

景品管理

-