From 63ebb7b2a1f059116d4db4d0c46625437e0b4627 Mon Sep 17 00:00:00 2001 From: "Haru.Kusano" Date: Fri, 6 Jun 2025 10:50:35 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=99=E7=90=86=E8=BF=BD=E5=8A=A0=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E3=83=9C=E3=82=BF=E3=83=B3=E6=8E=A8=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/AddDishies1.tsx | 13 +++++++++++++ frontend/src/pages/TaskListPage.tsx | 10 ++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 frontend/src/pages/AddDishies1.tsx diff --git a/frontend/src/pages/AddDishies1.tsx b/frontend/src/pages/AddDishies1.tsx new file mode 100644 index 0000000..fe425c0 --- /dev/null +++ b/frontend/src/pages/AddDishies1.tsx @@ -0,0 +1,13 @@ + +import React from 'react'; +import { Box } from '@mui/material'; + +const AddDishies1: React.FC = () => { + return ( + + {/* 白紙のページ - 何も表示しない */} + + ); +}; + +export default AddDishies1; \ No newline at end of file diff --git a/frontend/src/pages/TaskListPage.tsx b/frontend/src/pages/TaskListPage.tsx index 975f836..e1fee9a 100644 --- a/frontend/src/pages/TaskListPage.tsx +++ b/frontend/src/pages/TaskListPage.tsx @@ -4,6 +4,7 @@ */ import React, { useState, useEffect } from 'react'; import { toBuyApi, stuffApi } from '../services/api'; +import { useNavigate, Outlet, useLocation } from 'react-router-dom'; import { Container, Typography, @@ -36,7 +37,7 @@ import { import { Task, ToBuy, Stuff } from '../types/types'; import { TASK_ERRORS } from '../constants/errorMessages'; //import { FaCarrot } from "react-icons/fa6"; //エラー起きる いったん保留 -import CategoryDropDown from "../components/CategoryDropDown"; +import handleNavigate from "../components/Layout"; @@ -227,7 +228,12 @@ const TaskListPage: React.FC = () => { setOpenDialog(true)} + onClick={() => {setOpenDialog(true); + //handleNavigate('/AddDishies1'); + }} + //selected={isSelected('/test')} + + >