From d05021968de6c37c118da8c1c38cd7d8b4425cfd Mon Sep 17 00:00:00 2001 From: Sea10wood Date: Sun, 11 Aug 2024 06:07:33 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20/pages=E4=BB=A5=E4=B8=8B=E3=81=AB?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5router=E3=81=8B=E3=82=89=E8=AA=AD=E3=81=BF?= =?UTF-8?q?=E8=BE=BC=E3=81=BE=E3=81=AA=E3=81=84JSX=E3=82=92components/resp?= =?UTF-8?q?onsive=E3=81=B8=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/{pages => components/responsive}/homePC/index.module.css | 0 src/{pages => components/responsive}/homePC/index.tsx | 5 +++-- src/{pages => components/responsive}/homeSP/index.module.css | 0 src/{pages => components/responsive}/homeSP/index.tsx | 2 +- src/pages/home/index.tsx | 5 +++-- 5 files changed, 7 insertions(+), 5 deletions(-) rename src/{pages => components/responsive}/homePC/index.module.css (100%) rename src/{pages => components/responsive}/homePC/index.tsx (94%) rename src/{pages => components/responsive}/homeSP/index.module.css (100%) rename src/{pages => components/responsive}/homeSP/index.tsx (95%) diff --git a/src/pages/homePC/index.module.css b/src/components/responsive/homePC/index.module.css similarity index 100% rename from src/pages/homePC/index.module.css rename to src/components/responsive/homePC/index.module.css diff --git a/src/pages/homePC/index.tsx b/src/components/responsive/homePC/index.tsx similarity index 94% rename from src/pages/homePC/index.tsx rename to src/components/responsive/homePC/index.tsx index 9dd398e..5cc0a5c 100644 --- a/src/pages/homePC/index.tsx +++ b/src/components/responsive/homePC/index.tsx @@ -1,5 +1,6 @@ -import { DefaultButton } from "../../components/ui/Button"; -import TextButton from "../../components/ui/TextButton"; + +import { DefaultButton } from "../../ui/Button"; +import TextButton from "../../ui/TextButton"; import styles from "./index.module.css"; function HomePC() { diff --git a/src/pages/homeSP/index.module.css b/src/components/responsive/homeSP/index.module.css similarity index 100% rename from src/pages/homeSP/index.module.css rename to src/components/responsive/homeSP/index.module.css diff --git a/src/pages/homeSP/index.tsx b/src/components/responsive/homeSP/index.tsx similarity index 95% rename from src/pages/homeSP/index.tsx rename to src/components/responsive/homeSP/index.tsx index 8efbc9e..58fee29 100644 --- a/src/pages/homeSP/index.tsx +++ b/src/components/responsive/homeSP/index.tsx @@ -1,4 +1,4 @@ -import { DefaultButton } from "../../components/ui/Button"; +import { DefaultButton } from "../../ui/Button"; import styles from "./index.module.css"; function HomeSP() { diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index 5b350c4..35c4fb3 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -1,7 +1,8 @@ import { useEffect, useState } from "react"; import { device } from "../../utils/device"; -import HomePC from "../homePC/index.tsx"; -import HomeSP from "../homeSP/index.tsx"; +import HomePC from "../../components/responsive/homePC"; +import HomeSP from "../../components/responsive/homeSP"; + function Home() { const [isPcScreen, setIsPcScreen] = useState(