11import React , { useState } from 'react' ;
22import { useEnsureListPath , useUrgency } from '../hooks' ;
33import { getUrgency } from '../utils/urgencyUtils' ;
4- import { List as UnorderedList , Box } from '@mui/material' ;
5- import Grid from '@mui/material/Grid2' ;
4+ // import { List as UnorderedList, Box } from '@mui/material';
5+ // import Grid from '@mui/material/Grid2';
66import { ListItem , AddItems , TextInputElement } from '../components' ;
77
88// React.memo is needed to prevent unnecessary re-renders of the List component
@@ -40,35 +40,35 @@ export const List = React.memo(function List({ data, listPath }) {
4040 ) : (
4141 < >
4242 < p > { listName } </ p >
43- < Box sx = { { flexGrow : 1 } } >
43+ { /* <Box sx={{ flexGrow: 1 }}>
4444 <Grid
4545 container
4646 spacing={8}
4747 columns={16}
4848 justifyContent="space-between"
4949 >
50- < Grid size = { { xs : 2 , sm : 4 , md : 4 } } >
51- < AddItems items = { data } />
52- </ Grid >
53- < Grid size = { { xs : 2 , sm : 4 , md : 4 } } >
54- < form
55- id = "search-item-form"
56- onSubmit = { ( event ) => event . preventDefault ( ) }
57- >
58- < TextInputElement
59- id = "search-item"
60- type = "search"
61- placeholder = "Search Item..."
62- required = { true }
63- onChange = { handleTextChange }
64- label = "Search Item:"
65- />
66- </ form >
67- </ Grid >
50+ <Grid size={{ xs: 2, sm: 4, md: 4 }}> */ }
51+ < AddItems items = { data } />
52+ { /* </Grid>
53+ <Grid size={{ xs: 2, sm: 4, md: 4 }}> */ }
54+ < form
55+ id = "search-item-form"
56+ onSubmit = { ( event ) => event . preventDefault ( ) }
57+ >
58+ < TextInputElement
59+ id = "search-item"
60+ type = "search"
61+ placeholder = "Search Item..."
62+ required = { true }
63+ onChange = { handleTextChange }
64+ label = "Search Item:"
65+ />
66+ </ form >
67+ { /* </Grid>
6868 </Grid>
69- </ Box >
69+ </Box> */ }
7070
71- < UnorderedList >
71+ < ul >
7272 { filteredItems . map ( ( item ) => {
7373 const itemUrgencyStatus = getUrgency ( item . name , urgencyObject ) ;
7474 return (
@@ -80,7 +80,7 @@ export const List = React.memo(function List({ data, listPath }) {
8080 />
8181 ) ;
8282 } ) }
83- </ UnorderedList >
83+ </ ul >
8484 </ >
8585 ) }
8686 </ >
0 commit comments