diff --git a/src/frontend/src/features/notes/ui/NotesList.tsx b/src/frontend/src/features/notes/ui/NotesList.tsx index 04f57cb28..1bace9ac7 100644 --- a/src/frontend/src/features/notes/ui/NotesList.tsx +++ b/src/frontend/src/features/notes/ui/NotesList.tsx @@ -1,4 +1,4 @@ -import { List, ListSubheader, Stack, Typography } from '@mui/material'; +import { Grid, List, ListItem, ListSubheader, Stack, Typography } from '@mui/material'; import { useMemo, type FC } from 'react'; import { getMealName, type MealType, type NoteItem } from '../models'; import { AddNote } from './AddNote'; @@ -52,14 +52,20 @@ export const NotesList: FC = ({ pageId, mealType, notes }) => { } sx={{ width: '100%' }} > - {notes.map(note => ( - - ))} - + + + {notes.map(note => ( + + ))} + + + + + ); }; diff --git a/src/frontend/src/features/notes/ui/NotesListItem.tsx b/src/frontend/src/features/notes/ui/NotesListItem.tsx index 93d6d9299..27c40e9b7 100644 --- a/src/frontend/src/features/notes/ui/NotesListItem.tsx +++ b/src/frontend/src/features/notes/ui/NotesListItem.tsx @@ -1,5 +1,5 @@ import DeleteIcon from '@mui/icons-material/Delete'; -import { ListItem, IconButton, ListItemButton, ListItemText, Tooltip } from '@mui/material'; +import { ListItem, IconButton, ListItemButton, ListItemText, Tooltip, Grid } from '@mui/material'; import { type FC } from 'react'; import { type NoteItem } from '../models'; import { DeleteNote } from './DeleteNote'; @@ -10,33 +10,35 @@ interface Props { pageId: number; } -export const NotesListItem: FC = ({ note, pageId }) => { - return ( - - {toggleDeleteDialog => ( - - - - - - )} - - } - > - - {toggleEditDialog => ( - - - +export const NotesListItem: FC = ({ note, pageId }) => ( + + {toggleDeleteDialog => ( + + + + + )} - - - ); -}; + + } + > + + {toggleEditDialog => ( + + + + )} + + +);