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')} + + >