数量変更ボタンの追加

feature-frontend-styles
Haru.Kusano 9 months ago
parent 8a5bd92092
commit aaa0ef605a
  1. 21
      frontend/src/pages/TaskListPage.tsx

@ -32,7 +32,7 @@ import {
} from '@mui/material'; } from '@mui/material';
import { import {
Add as AddIcon, Delete as DeleteIcon, ShoppingBasket as ShoppingBasketIcon, Add as AddIcon, Delete as DeleteIcon, ShoppingBasket as ShoppingBasketIcon,
SoupKitchen as SoupKitchenIcon SoupKitchen as SoupKitchenIcon, Edit as EditIcon
} from '@mui/icons-material'; } from '@mui/icons-material';
import { ToBuy, Stuff, Stock } from '../types/types'; import { ToBuy, Stuff, Stock } from '../types/types';
import { TOBUY_ERRORS } from '../constants/errorMessages'; import { TOBUY_ERRORS } from '../constants/errorMessages';
@ -194,13 +194,28 @@ const TaskListPage: React.FC = () => {
textDecoration: false ? 'line-through' : 'none', textDecoration: false ? 'line-through' : 'none',
}} }}
/> />
{/* 買い物リスト:食材情報記入ボタン */}
<ListItemSecondaryAction> <ListItemSecondaryAction>
{/* 買い物リスト:数量変更ボタン */}
<Tooltip title="数量変更">
<IconButton
edge="end"
aria-label="数量変更"
sx={{ marginRight: 2 }}
onClick={() => {
setOpenInfoDialog(true)
//setSelectedTask(tobuy.tobuyId)
// handleDeleteTask(tobuy.tobuyId)
}}
>
<EditIcon />
</IconButton>
</Tooltip>
{/* 買い物リスト:食材情報記入ボタン */}
<Tooltip title="食材情報追加"> <Tooltip title="食材情報追加">
<IconButton <IconButton
edge="end" edge="end"
aria-label="食材情報追加" aria-label="食材情報追加"
//sx={{ marginRight: 2 }} //sx={{ marginRight: 3 }}
onClick={() => { onClick={() => {
setOpenInfoDialog(true) setOpenInfoDialog(true)
setSelectedTask(tobuy.tobuyId) setSelectedTask(tobuy.tobuyId)

Loading…
Cancel
Save