Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

refactor: 💡 不要な記述を削除し、componentのdefault exportをやめた #527

Merged
merged 1 commit into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions components/votes/HowToVote.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextPage } from 'next'
import useTranslation from 'next-translate/useTranslation'

const HowToVote: NextPage = () => {
export const HowToVote: NextPage = () => {
const { t } = useTranslation('votes_how_to_vote')

return (
Expand Down Expand Up @@ -84,5 +84,3 @@ const HowToVote: NextPage = () => {
</div>
)
}

export default HowToVote
6 changes: 1 addition & 5 deletions components/votes/Onegai.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { NextPage } from 'next'
import { useLocale } from '@/hooks/useLocale'
// import useTranslation from 'next-translate/useTranslation'

const Onegai: NextPage = () => {
// const { t } = useTranslation('')
export const Onegai: NextPage = () => {
const { locale } = useLocale()

return (
Expand Down Expand Up @@ -51,5 +49,3 @@ const Onegai: NextPage = () => {
</div>
)
}

export default Onegai
6 changes: 1 addition & 5 deletions components/votes/VoteExamples.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import type { NextPage } from 'next'
import Image from 'next/image'
import { useLocale } from '@/hooks/useLocale'
// import useTranslation from 'next-translate/useTranslation'

const VoteExamples: NextPage = () => {
export const VoteExamples: NextPage = () => {
const { locale } = useLocale()
// const { t } = useTranslation('')

return (
<div className="bg-white text-black">
Expand Down Expand Up @@ -88,5 +86,3 @@ const VoteExamples: NextPage = () => {
</div>
)
}

export default VoteExamples
42 changes: 3 additions & 39 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import HumbergerNavigation from '@/components/humberger-menu/HumbergerNavigation
import { NavBar } from '@/components/common/NavBar'

import { EventSummary } from '@/components/common/EventSummary'
import HowToVote from '@/components/votes/HowToVote'
import VoteExamples from '@/components/votes/VoteExamples'
import { HowToVote } from '@/components/votes/HowToVote'
import { VoteExamples } from '@/components/votes/VoteExamples'
import { Divisions } from '@/components/votes/Divisions'
import { HallOfFame } from '@/components/votes/HallOfFame'
import Onegai from '@/components/votes/Onegai'
import { Onegai } from '@/components/votes/Onegai'
import { EventsInEventIndex } from '@/components/events-in-event/index'

import { VoteDeadLineCard } from '@/components/common/VoteDeadLineCard'
Expand Down Expand Up @@ -67,42 +67,6 @@ const Home: NextPage = () => {
height={1788}
/>

{/* <div className="hero bg-base-200">
<div className="hero-content text-center">
<div className="max-w-md">
<span className="text-xl">投票開始まであと</span>
<br />
<br />
<div className="grid grid-flow-col gap-5 text-center auto-cols-max">
<div className="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span className="countdown font-mono text-5xl">
<StyledNowDate now={now} />
</span>
</div>
<div className="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span className="countdown font-mono text-5xl">
<StyledNowHour now={now} />
</span>
</div>
<div className="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span className="countdown font-mono text-5xl">
<StyledNowMinute now={now} />
</span>
</div>
<div className="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span className="countdown font-mono text-5xl">
<StyledNowSecond now={now} />
</span>
</div>
</div>
</div>
</div>
</div> */}

<div className="pt-4" />

{lang === 'en' && (
Expand Down