From edc0eaa20c03f948aa06d94c6afb92865d33dfda Mon Sep 17 00:00:00 2001 From: Marukome0743 Date: Wed, 1 May 2024 18:04:45 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8Frefactor:=20rename=20interfac?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/navbar.tsx | 70 +++++++++++++------------- app/interfaces/{themes.ts => theme.ts} | 2 +- 2 files changed, 36 insertions(+), 36 deletions(-) rename app/interfaces/{themes.ts => theme.ts} (58%) diff --git a/app/components/navbar.tsx b/app/components/navbar.tsx index b485cc6..13d6bc7 100644 --- a/app/components/navbar.tsx +++ b/app/components/navbar.tsx @@ -8,7 +8,7 @@ import { } from '@heroicons/react/24/outline' import Link from 'next/link' import type { Navigation } from '../interfaces/navigation' -import type { Themes } from '../interfaces/themes' +import type { Theme } from '../interfaces/theme' import { metadata } from '../layout' export const navigation: Navigation[] = [ @@ -33,7 +33,7 @@ export const navigation: Navigation[] = [ }, ] as const -const themes: Themes[] = [ +const themes: Theme[] = [ { name: 'デフォルト', value: 'light' }, { name: 'ダーク', value: 'dark' }, { name: 'カップケーキ', value: 'cupcake' }, @@ -77,8 +77,12 @@ export function Navbar() { {metadata.title as string} - - +
+ +
+
+ +
) } @@ -105,43 +109,39 @@ function DropdownMenu() { function NavItems() { return ( -
-
    - {navigation.map((item) => ( -
  • - - - {item.name} - -
  • - ))} -
-
+
    + {navigation.map((item) => ( +
  • + + + {item.name} + +
  • + ))} +
) } function ThemeController() { return ( -
-
-
- テーマ - -
-
    - {themes.map((theme) => ( -
  • - -
  • - ))} -
+
+
+ テーマ +
+
    + {themes.map((theme) => ( +
  • + +
  • + ))} +
) } diff --git a/app/interfaces/themes.ts b/app/interfaces/theme.ts similarity index 58% rename from app/interfaces/themes.ts rename to app/interfaces/theme.ts index 958586a..4e2d2df 100644 --- a/app/interfaces/themes.ts +++ b/app/interfaces/theme.ts @@ -1,4 +1,4 @@ -export type Themes = { +export type Theme = { name: string value: string }