From 07acd1e99185c97a6a00cf9735abaa5abbaee690 Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Thu, 23 Jun 2022 14:17:44 +0900 Subject: [PATCH 1/8] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E6=8A=95=E7=A5=A8?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=81=AE=E3=83=9A=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=82=92=E5=AE=9F=E8=A3=85=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 104 ++++++++++++++++++ components/check-your-votes/Description.tsx | 28 +++++ components/check-your-votes/Main.tsx | 27 +++++ .../check-your-votes/ResultEachHashtag.tsx | 21 ++++ pages/check-your-vote.tsx | 43 ++++++++ 5 files changed, 223 insertions(+) create mode 100644 components/check-your-votes/CheckForm.tsx create mode 100644 components/check-your-votes/Description.tsx create mode 100644 components/check-your-votes/Main.tsx create mode 100644 components/check-your-votes/ResultEachHashtag.tsx create mode 100644 pages/check-your-vote.tsx diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx new file mode 100644 index 00000000..e9324c7d --- /dev/null +++ b/components/check-your-votes/CheckForm.tsx @@ -0,0 +1,104 @@ +import type { NextPage } from 'next' +import Image from 'next/image' +import { useState } from 'react' +import axios from 'axios' + +import { ResultEachHashtag } from '@/components/check-your-votes/ResultEachHashtag' + +export const CheckForm: NextPage = () => { + const [screenName, setScreenName] = useState('') + const [nowLoading, setNowLoading] = useState(false) + + const [gss2022, setGss2022] = useState([]) + const [uniteAttacks, setUniteAttacks] = useState([]) + const [shortStories, setShortStories] = useState([]) + const [favQuotes, setFavQuotes] = useState([]) + const [sosenkyoCampaigns, setSosenkyoCampaigns] = useState([]) + + const changeScreenName = (e: any) => { + setScreenName(e.target.value) + } + + const clickCheckButton = () => { + const baseUrl = + process.env.NEXT_PUBLIC_CHECK_YOUR_VOTE_API || + 'https://headquarters.suikoden.info/check_votes_and_bonuses' + const apiUrl = `${baseUrl}?screen_name=${screenName}` + + console.log(apiUrl) + setNowLoading(true) + + axios + .get(apiUrl) + .then((response) => { + setGss2022(response.data.gss2022) + setUniteAttacks(response.data.unite_attacks) + setShortStories(response.data.short_stories) + setFavQuotes(response.data.fav_quotes) + setSosenkyoCampaigns(response.data.sosenkyo_campaigns) + }) + .catch((error) => { + console.error(error) + }) + .finally(() => { + setNowLoading(false) + }) + } + + return ( + <> +
+

チェックするところ

+
+ { + if (e.key === 'Enter') { + clickCheckButton() + } + }} + placeholder="@gensosenkyo" + className="input input-bordered input-accent w-full max-w-full bg-white text-black" + value={screenName} + /> + + +
+
+
+

結果が出るところ

+ {nowLoading ? ( + 幻水総選挙スピナー + ) : ( + <> +

#幻水総選挙2022

+ +

#幻水総選挙2022協力攻撃

+ +

#幻水総選挙お題小説

+ +

#幻水総選挙推し台詞

+ +

#幻水総選挙運動

+ + + )} +
+ + ) +} diff --git a/components/check-your-votes/Description.tsx b/components/check-your-votes/Description.tsx new file mode 100644 index 00000000..59a308f0 --- /dev/null +++ b/components/check-your-votes/Description.tsx @@ -0,0 +1,28 @@ +import type { NextPage } from 'next' + +export const Description: NextPage = () => { + return ( + <> +
+

説明

+
+
    +
  • + 説明文が入ります。説明文が入ります。説明文が入ります。説明文が入ります。 + 説明文が入ります。 +
  • +
  • + 説明文が入ります。説明文が入ります。説明文が入ります。 +
  • +
  • + 説明文が入ります。説明文が入ります。説明文が入ります。 + 説明文が入ります。 + 説明文が入ります。 +
  • +
  • 説明文が入ります。説明文が入ります。
  • +
+
+
+ + ) +} diff --git a/components/check-your-votes/Main.tsx b/components/check-your-votes/Main.tsx new file mode 100644 index 00000000..ecea74af --- /dev/null +++ b/components/check-your-votes/Main.tsx @@ -0,0 +1,27 @@ +import type { NextPage } from 'next' + +import { Description } from '@/components/check-your-votes/Description' +import { CheckForm } from '@/components/check-your-votes/CheckForm' + +export const Main: NextPage = () => { + return ( +
+
+
+
+
+

+ 投票チェック +

+ + +
+ + +
+
+
+
+
+ ) +} diff --git a/components/check-your-votes/ResultEachHashtag.tsx b/components/check-your-votes/ResultEachHashtag.tsx new file mode 100644 index 00000000..347ef3bf --- /dev/null +++ b/components/check-your-votes/ResultEachHashtag.tsx @@ -0,0 +1,21 @@ +import type { NextPage } from 'next' +import { TwitterTweetEmbed } from 'react-twitter-embed' + +interface Props { + tweetIds: string[] +} + +export const ResultEachHashtag: NextPage = ({ tweetIds }) => { + return ( + <> + {tweetIds.map((item: string) => ( +
+ +
+ ))} + + ) +} diff --git a/pages/check-your-vote.tsx b/pages/check-your-vote.tsx new file mode 100644 index 00000000..7253ddbf --- /dev/null +++ b/pages/check-your-vote.tsx @@ -0,0 +1,43 @@ +import type { NextPage } from 'next' +import Link from 'next/link' + +import HumbergerNavigation from '@/components/humberger-menu/HumbergerNavigation' +import { NavBar } from '@/components/common/NavBar' +import { SiteFooter } from '@/components/common/SiteFooter' + +import { Main } from '@/components/check-your-votes/Main' + +const CheckYourVote: NextPage = () => { + return ( +
+ 投票チェック - 幻水総選挙2022 +
+ +
+ +
+ + +
+
    +
  • + + ホーム + +
  • +
  • 投票チェック
  • +
+
+ +
+
+
+ +
+ +
+
+ ) +} + +export default CheckYourVote From 095b5a58c0902bcb9fa68b745d23940ecd5c93a4 Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Thu, 23 Jun 2022 17:44:25 +0900 Subject: [PATCH 2/8] =?UTF-8?q?=E5=BE=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx index e9324c7d..0db67f80 100644 --- a/components/check-your-votes/CheckForm.tsx +++ b/components/check-your-votes/CheckForm.tsx @@ -25,7 +25,6 @@ export const CheckForm: NextPage = () => { 'https://headquarters.suikoden.info/check_votes_and_bonuses' const apiUrl = `${baseUrl}?screen_name=${screenName}` - console.log(apiUrl) setNowLoading(true) axios @@ -68,7 +67,7 @@ export const CheckForm: NextPage = () => { id="check_button" type="submit" onClick={clickCheckButton} - className="mt-4 w-full btn btn-outline btn-secondary" + className="mt-4 w-full btn btn-active btn-accent" disabled={nowLoading} > 投票チェックする From 37f201b28f4f1aa57cc18a789722a65732980ea6 Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Thu, 23 Jun 2022 18:25:49 +0900 Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E3=83=AA=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=AF=E3=82=BF=E3=83=AA=E3=83=B3=E3=82=B0=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 72 +++++++++++++------ components/check-your-votes/Description.tsx | 16 +---- components/check-your-votes/Main.tsx | 4 +- .../check-your-votes/ResultDescription.tsx | 35 +++++++++ .../check-your-votes/ResultEachHashtag.tsx | 29 +++++--- 5 files changed, 110 insertions(+), 46 deletions(-) create mode 100644 components/check-your-votes/ResultDescription.tsx diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx index 0db67f80..b98eb96f 100644 --- a/components/check-your-votes/CheckForm.tsx +++ b/components/check-your-votes/CheckForm.tsx @@ -4,9 +4,12 @@ import { useState } from 'react' import axios from 'axios' import { ResultEachHashtag } from '@/components/check-your-votes/ResultEachHashtag' +import { ResultDescription } from '@/components/check-your-votes/ResultDescription' export const CheckForm: NextPage = () => { + const [isInitialState, setIsInitialState] = useState(true) const [screenName, setScreenName] = useState('') + const [screenNameForResult, setScreenNameForResult] = useState('') const [nowLoading, setNowLoading] = useState(false) const [gss2022, setGss2022] = useState([]) @@ -35,19 +38,21 @@ export const CheckForm: NextPage = () => { setShortStories(response.data.short_stories) setFavQuotes(response.data.fav_quotes) setSosenkyoCampaigns(response.data.sosenkyo_campaigns) + + setScreenNameForResult(screenName) }) .catch((error) => { console.error(error) }) .finally(() => { setNowLoading(false) + setIsInitialState(false) }) } return ( <>
-

チェックするところ

{
-
-

結果が出るところ

- {nowLoading ? ( - 幻水総選挙スピナー - ) : ( + +
+ {isInitialState && !nowLoading ? null : ( <> -

#幻水総選挙2022

- -

#幻水総選挙2022協力攻撃

- -

#幻水総選挙お題小説

- -

#幻水総選挙推し台詞

- -

#幻水総選挙運動

- + {nowLoading ? ( + 幻水総選挙スピナー + ) : ( + <> + + +
+ + +
+ + +
+ + +
+ + +
+ + + )} )}
diff --git a/components/check-your-votes/Description.tsx b/components/check-your-votes/Description.tsx index 59a308f0..50263beb 100644 --- a/components/check-your-votes/Description.tsx +++ b/components/check-your-votes/Description.tsx @@ -3,23 +3,13 @@ import type { NextPage } from 'next' export const Description: NextPage = () => { return ( <> -
-

説明

+
  • - 説明文が入ります。説明文が入ります。説明文が入ります。説明文が入ります。 - 説明文が入ります。 + チェックをしたい Twitter の ID + を入力して「投票チェック」のボタンを押して下さい。
  • -
  • - 説明文が入ります。説明文が入ります。説明文が入ります。 -
  • -
  • - 説明文が入ります。説明文が入ります。説明文が入ります。 - 説明文が入ります。 - 説明文が入ります。 -
  • -
  • 説明文が入ります。説明文が入ります。
diff --git a/components/check-your-votes/Main.tsx b/components/check-your-votes/Main.tsx index ecea74af..a96f3357 100644 --- a/components/check-your-votes/Main.tsx +++ b/components/check-your-votes/Main.tsx @@ -10,13 +10,11 @@ export const Main: NextPage = () => {
-

+

投票チェック

-
-
diff --git a/components/check-your-votes/ResultDescription.tsx b/components/check-your-votes/ResultDescription.tsx new file mode 100644 index 00000000..cef2c1dc --- /dev/null +++ b/components/check-your-votes/ResultDescription.tsx @@ -0,0 +1,35 @@ +import type { NextPage } from 'next' + +type Props = { + screenName: string +} + +export const ResultDescription: NextPage = ({ screenName }) => { + // 文言は https://github.com/true-runes/suikoden-election-2020-frontend/blob/development/src/components/parts/CheckYourVote/NoticeMessageForResults.vue などを参考に。 + + return ( + <> +
+

+ {screenName} さん の ツイートの検索結果 +

+
+
    +
  • + + DM による投票はこのページでチェックすることはできません。 + + 主催からお送りする投票受付確認の DM をお待ち下さい。 +
  • +
  • + ツイートを削除したりアカウントに鍵を付けたりした場合には、チェック結果へ反映されない場合があります。 +
  • +
  • + 投票のやり直しなど、同内容と思われる投票ツイートがあった際には、集計が重複しないように主催側で対応させて頂きます。 +
  • +
+
+
+ + ) +} diff --git a/components/check-your-votes/ResultEachHashtag.tsx b/components/check-your-votes/ResultEachHashtag.tsx index 347ef3bf..3946a814 100644 --- a/components/check-your-votes/ResultEachHashtag.tsx +++ b/components/check-your-votes/ResultEachHashtag.tsx @@ -3,19 +3,30 @@ import { TwitterTweetEmbed } from 'react-twitter-embed' interface Props { tweetIds: string[] + title: string } -export const ResultEachHashtag: NextPage = ({ tweetIds }) => { +export const ResultEachHashtag: NextPage = ({ tweetIds, title }) => { return ( <> - {tweetIds.map((item: string) => ( -
- -
- ))} +

{title}

+ + {tweetIds.length < 1 ? ( + <> +

ツイートが見つかりませんでした。

+ + ) : ( + <> + {tweetIds.map((item: string) => ( +
+ +
+ ))} + + )} ) } From 5509e99c0ed7b6939fec3d490e64d97efd4f83a6 Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Thu, 23 Jun 2022 19:25:54 +0900 Subject: [PATCH 4/8] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E3=83=97=E3=83=AC?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=83=9B=E3=83=AB=E3=83=80=E3=81=AE=E8=AA=AC?= =?UTF-8?q?=E6=98=8E=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx index b98eb96f..7dbff033 100644 --- a/components/check-your-votes/CheckForm.tsx +++ b/components/check-your-votes/CheckForm.tsx @@ -63,7 +63,7 @@ export const CheckForm: NextPage = () => { clickCheckButton() } }} - placeholder="@gensosenkyo" + placeholder="gensosenkyo (@は不要です)" className="input input-bordered input-accent w-full max-w-full bg-white text-black" value={screenName} /> From fd973105b4ee16c370480cdd171744235550b8ff Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Thu, 23 Jun 2022 22:13:14 +0900 Subject: [PATCH 5/8] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E4=BB=AE=E5=AE=9F?= =?UTF-8?q?=E8=A3=85=E3=81=97=E3=81=9F=E3=82=AD=E3=83=A3=E3=83=A9API?= =?UTF-8?q?=E3=82=92=E5=88=A9=E7=94=A8=E3=81=99=E3=82=8B=E3=83=9A=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=82=92=E4=BB=AE=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/usagisan.tsx | 153 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 151 insertions(+), 2 deletions(-) diff --git a/pages/usagisan.tsx b/pages/usagisan.tsx index 1a475bdb..2cd3167e 100644 --- a/pages/usagisan.tsx +++ b/pages/usagisan.tsx @@ -1,11 +1,160 @@ import type { NextPage } from 'next' +import Link from 'next/link' +import Image from 'next/image' +import { useState } from 'react' +import axios from 'axios' + +import HumbergerNavigation from '@/components/humberger-menu/HumbergerNavigation' +import { NavBar } from '@/components/common/NavBar' +import { SiteFooter } from '@/components/common/SiteFooter' + +type CharacterDetails = { + nickname: string + character: string + products: string[] +} const Usagisan: NextPage = () => { + // const [isInitialState, setIsInitialState] = useState(true) + const [nickname, setNickname] = useState('') + const [characterDetails, setCharacterDetails] = useState( + {} as CharacterDetails + ) + const [characterDetailProducts, setCharacterDetailProducts] = useState([]) + const [nowLoading, setNowLoading] = useState(false) + + const changeNickname = (e: any) => { + setNickname(e.target.value) + } + + const clickCheckButton = () => { + const baseUrl = 'https://gss2022-stg.herokuapp.com/characters' + const apiUrl = `${baseUrl}?nickname=${nickname}` + + setNowLoading(true) + + axios + .get(apiUrl) + .then((response) => { + setCharacterDetails(response.data) + setCharacterDetailProducts(response.data.products) + }) + .catch((error) => { + console.error(error) + }) + .finally(() => { + setNowLoading(false) + // setIsInitialState(false) + }) + } + return (
- うさぎさんチーム + うさぎさんチーム - 幻水総選挙2022 +
+ +
+ +
+ +
+
    +
  • + + ホーム + +
  • +
  • うさぎさんチーム
  • +
+
+ +
+
+
+
+
+
+

+ うさぎさんチーム +

+ + <> +
+
+ { + if (e.key === 'Enter') { + clickCheckButton() + } + }} + placeholder="2主とか軍曹とか" + className="input input-bordered input-accent w-full max-w-full bg-white text-black" + value={nickname} + /> + + +
+
+ +
+ {false ? null : ( + <> + {nowLoading ? ( + 幻水総選挙スピナー + ) : ( + <> +

+ ニックネーム +

+

{characterDetails.nickname}

+
+ +

+ キャラ名 +

+

{characterDetails.character}

+
+ +

+ 作品名 +

+ {characterDetailProducts.map((product) => ( +

+ {product} +

+ ))} + + )} + + )} +
+ +
+
+
+
+
+
-
Hello, World!
+
+ +
) } From 35cfd5f844d7bcb17c5df12fa2572ebbf530402f Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Fri, 24 Jun 2022 19:13:02 +0900 Subject: [PATCH 6/8] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E3=82=84=E3=83=AA=E3=83=B3=E3=82=AF=E5=85=88=E3=82=92=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9=E7=94=A8=E3=81=AB?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 12 ++++++------ components/common/AboutCheckVoteCard.tsx | 5 +---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx index 7dbff033..f426603f 100644 --- a/components/check-your-votes/CheckForm.tsx +++ b/components/check-your-votes/CheckForm.tsx @@ -106,23 +106,23 @@ export const CheckForm: NextPage = () => { title={'#幻水総選挙2022協力攻撃'} /> -
+ {/*
+ /> */} -
+ {/*
+ /> */} -
+ {/*
+ /> */} )} diff --git a/components/common/AboutCheckVoteCard.tsx b/components/common/AboutCheckVoteCard.tsx index 2f347478..7e2c8d78 100644 --- a/components/common/AboutCheckVoteCard.tsx +++ b/components/common/AboutCheckVoteCard.tsx @@ -15,10 +15,7 @@ export const AboutCheckVoteCard: NextPage = () => {
- + 投票チェックはこちら From 29843d8935f161a9d24e380b347b7a2eb48fc339 Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Fri, 24 Jun 2022 19:27:43 +0900 Subject: [PATCH 7/8] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20=E4=BD=BF?= =?UTF-8?q?=E3=82=8F=E3=81=AA=E3=81=84=E5=80=A4=E3=82=92=E6=89=B1=E3=81=86?= =?UTF-8?q?=E3=81=A8=E3=81=93=E3=82=8D=E3=82=92=E3=82=B3=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx index f426603f..502091ef 100644 --- a/components/check-your-votes/CheckForm.tsx +++ b/components/check-your-votes/CheckForm.tsx @@ -14,9 +14,9 @@ export const CheckForm: NextPage = () => { const [gss2022, setGss2022] = useState([]) const [uniteAttacks, setUniteAttacks] = useState([]) - const [shortStories, setShortStories] = useState([]) - const [favQuotes, setFavQuotes] = useState([]) - const [sosenkyoCampaigns, setSosenkyoCampaigns] = useState([]) + // const [shortStories, setShortStories] = useState([]) + // const [favQuotes, setFavQuotes] = useState([]) + // const [sosenkyoCampaigns, setSosenkyoCampaigns] = useState([]) const changeScreenName = (e: any) => { setScreenName(e.target.value) @@ -35,9 +35,9 @@ export const CheckForm: NextPage = () => { .then((response) => { setGss2022(response.data.gss2022) setUniteAttacks(response.data.unite_attacks) - setShortStories(response.data.short_stories) - setFavQuotes(response.data.fav_quotes) - setSosenkyoCampaigns(response.data.sosenkyo_campaigns) + // setShortStories(response.data.short_stories) + // setFavQuotes(response.data.fav_quotes) + // setSosenkyoCampaigns(response.data.sosenkyo_campaigns) setScreenNameForResult(screenName) }) From fa561446f4e18577a7e16c139f98a430b01f510e Mon Sep 17 00:00:00 2001 From: Osamu Takiya Date: Fri, 24 Jun 2022 20:06:05 +0900 Subject: [PATCH 8/8] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20=E4=BD=99?= =?UTF-8?q?=E5=88=86=E3=81=AA=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/check-your-votes/CheckForm.tsx | 24 ----------------------- 1 file changed, 24 deletions(-) diff --git a/components/check-your-votes/CheckForm.tsx b/components/check-your-votes/CheckForm.tsx index 502091ef..d4502fac 100644 --- a/components/check-your-votes/CheckForm.tsx +++ b/components/check-your-votes/CheckForm.tsx @@ -14,9 +14,6 @@ export const CheckForm: NextPage = () => { const [gss2022, setGss2022] = useState([]) const [uniteAttacks, setUniteAttacks] = useState([]) - // const [shortStories, setShortStories] = useState([]) - // const [favQuotes, setFavQuotes] = useState([]) - // const [sosenkyoCampaigns, setSosenkyoCampaigns] = useState([]) const changeScreenName = (e: any) => { setScreenName(e.target.value) @@ -35,9 +32,6 @@ export const CheckForm: NextPage = () => { .then((response) => { setGss2022(response.data.gss2022) setUniteAttacks(response.data.unite_attacks) - // setShortStories(response.data.short_stories) - // setFavQuotes(response.data.fav_quotes) - // setSosenkyoCampaigns(response.data.sosenkyo_campaigns) setScreenNameForResult(screenName) }) @@ -105,24 +99,6 @@ export const CheckForm: NextPage = () => { tweetIds={uniteAttacks} title={'#幻水総選挙2022協力攻撃'} /> - - {/*
- */} - - {/*
- */} - - {/*
- */} )}