+
+ ホームに戻る
+
diff --git a/client/src/pages/Root.tsx b/client/src/pages/Root.tsx
deleted file mode 100644
index 8021d76..0000000
--- a/client/src/pages/Root.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-import { HiOutlineCog } from "react-icons/hi";
-import { NavLink } from "react-router";
-import { involvedProjectsResSchema } from "../../../common/schema";
-import Header from "../components/Header";
-import { useData } from "../hooks";
-import { API_ENDPOINT } from "../utils";
-
-export default function RootPage() {
- const { data: involvedProjects, loading } = useData(`${API_ENDPOINT}/projects/mine`, involvedProjectsResSchema);
-
- return (
- <>
-
-
-
-
-
- イベントを作成
-
-
- {loading ? (
-
-
-
- ) : involvedProjects ? (
-
-
作成・提出したイベント
- {involvedProjects.length > 0 ? (
-
- {involvedProjects.map((p) => (
- -
-
-
-
{p.name}
-
- {formatDate(p.startDate.toLocaleDateString())} ~ {formatDate(p.endDate.toLocaleDateString())}
-
-
- {p.isHost && (
-
-
-
-
-
- )}
-
-
- ))}
-
- ) : (
-
あなたが作成したイベントはありません。
- )}
-
- ) : (
-
- )}
-
- >
- );
-}
-
-function Landing() {
- return (
-
- );
-}
-
-// ---------- Utility ----------
-const formatDate = (isoDate: string) => {
- const date = new Date(isoDate);
- return date.toLocaleDateString("ja-JP");
-};
diff --git a/client/src/pages/eventId/Submission.tsx b/client/src/pages/eventId/Submission.tsx
index 721968a..9cfa006 100644
--- a/client/src/pages/eventId/Submission.tsx
+++ b/client/src/pages/eventId/Submission.tsx
@@ -1,5 +1,11 @@
import { useCallback, useEffect, useRef, useState } from "react";
-import { HiOutlineCheckCircle, HiOutlineCog, HiOutlineExclamationCircle, HiPencil } from "react-icons/hi";
+import {
+ HiOutlineCheckCircle,
+ HiOutlineCog,
+ HiOutlineExclamationCircle,
+ HiOutlineHome,
+ HiPencil,
+} from "react-icons/hi";
import { NavLink, useParams } from "react-router";
import { projectResSchema } from "../../../../common/schema";
import { Calendar } from "../../components/Calendar";
@@ -121,7 +127,7 @@ export default function SubmissionPage() {
) : (
-
{project.name} の日程調整
+ {project.name} の日程調整
{isHost && (
@@ -174,9 +180,12 @@ export default function SubmissionPage() {
>
) : (
<>
-
+
+
+ ホームに戻る
+