|
|
@ -3,13 +3,13 @@ |
|
|
|
* ヘッダー(AppBar)とメインコンテンツ領域を含む基本的なページ構造を定義 |
|
|
|
* ヘッダー(AppBar)とメインコンテンツ領域を含む基本的なページ構造を定義 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
import React, { useState } from 'react'; |
|
|
|
import React, { useState } from 'react'; |
|
|
|
import {
|
|
|
|
import { |
|
|
|
AppBar,
|
|
|
|
AppBar, |
|
|
|
Toolbar,
|
|
|
|
Toolbar, |
|
|
|
Typography,
|
|
|
|
Typography, |
|
|
|
Container,
|
|
|
|
Container, |
|
|
|
Box,
|
|
|
|
Box, |
|
|
|
Button,
|
|
|
|
Button, |
|
|
|
Drawer, |
|
|
|
Drawer, |
|
|
|
List, |
|
|
|
List, |
|
|
|
ListItemText, |
|
|
|
ListItemText, |
|
|
@ -18,9 +18,10 @@ import { |
|
|
|
Divider, |
|
|
|
Divider, |
|
|
|
IconButton |
|
|
|
IconButton |
|
|
|
} from '@mui/material'; |
|
|
|
} from '@mui/material'; |
|
|
|
import {
|
|
|
|
import { |
|
|
|
Menu as MenuIcon, |
|
|
|
Menu as MenuIcon, |
|
|
|
ListAlt as ListAltIcon, |
|
|
|
ListAlt as ListAltIcon, |
|
|
|
|
|
|
|
Inventory as InventoryIcon, // テストページ用のアイコン
|
|
|
|
} from '@mui/icons-material'; |
|
|
|
} from '@mui/icons-material'; |
|
|
|
import { useNavigate, Outlet, useLocation } from 'react-router-dom'; |
|
|
|
import { useNavigate, Outlet, useLocation } from 'react-router-dom'; |
|
|
|
|
|
|
|
|
|
|
@ -91,13 +92,21 @@ const Layout: React.FC = () => { |
|
|
|
role="presentation" |
|
|
|
role="presentation" |
|
|
|
> |
|
|
|
> |
|
|
|
<List> |
|
|
|
<List> |
|
|
|
<ListItemButton
|
|
|
|
<ListItemButton |
|
|
|
onClick={() => handleNavigate('/tasks')}
|
|
|
|
onClick={() => handleNavigate('/tasks')} |
|
|
|
selected={isSelected('/tasks')} |
|
|
|
selected={isSelected('/tasks')} |
|
|
|
> |
|
|
|
> |
|
|
|
<ListItemIcon><ListAltIcon /></ListItemIcon> |
|
|
|
<ListItemIcon><ListAltIcon /></ListItemIcon> |
|
|
|
<ListItemText primary="タスク一覧" /> |
|
|
|
<ListItemText primary="タスク一覧" /> |
|
|
|
</ListItemButton> |
|
|
|
</ListItemButton> |
|
|
|
|
|
|
|
{/* テストページへのリンクを追加 */} |
|
|
|
|
|
|
|
<ListItemButton |
|
|
|
|
|
|
|
onClick={() => handleNavigate('/stock')} |
|
|
|
|
|
|
|
selected={isSelected('/stock')} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<ListItemIcon><InventoryIcon /></ListItemIcon> |
|
|
|
|
|
|
|
<ListItemText primary="在庫管理" /> |
|
|
|
|
|
|
|
</ListItemButton> |
|
|
|
<Divider /> |
|
|
|
<Divider /> |
|
|
|
</List> |
|
|
|
</List> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|