Skip to content

Commit

Permalink
Merge pull request #94 from the-collab-lab/km-add-style-search-form-a…
Browse files Browse the repository at this point in the history
…nd-legend

added style to search form and legend
  • Loading branch information
MiliMade committed Apr 7, 2024
2 parents ad69b4c + 7b26fc5 commit 4c62972
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/views/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export function List({ data, listPath }) {
</Grid>
<Grid item>
<Button

type="submit"
variant="outlined"
sx={{
Expand All @@ -242,7 +241,6 @@ export function List({ data, listPath }) {
fontSize: '1.5rem',
margin: '10px',
}}

>
Submit
</Button>
Expand Down Expand Up @@ -389,7 +387,19 @@ export function List({ data, listPath }) {
>
{listName} List
</Typography>
<Box sx={{ display: 'flex', alignItems: 'center' }}>
<Box
sx={{
display: 'flex',
alignItems: 'center',
borderColor: (theme) =>
theme.palette.mode === 'dark' ? '#f8f9fa' : '#003780',
borderStyle: 'solid',
borderWidth: '1px',
padding: '20px',
backgroundColor: (theme) =>
theme.palette.mode === 'dark' ? '#003780' : '#f8f9fa',
}}
>
<FormControl variant="standard" sx={{ width: '250px' }}>
<InputLabel
htmlFor="itemSearch"
Expand Down Expand Up @@ -454,7 +464,17 @@ export function List({ data, listPath }) {
justifyContent="center"
spacing={{ xs: 0, md: 2 }}
mt={1}
sx={{ mt: { xs: 1 }, mb: { xs: 0 } }}
sx={{
mt: { xs: 1 },
mb: { xs: 0 },
borderColor: (theme) =>
theme.palette.mode === 'dark' ? '#f8f9fa' : '#003780',
borderStyle: 'solid',
borderWidth: '1px',
padding: '10px',
backgroundColor: (theme) =>
theme.palette.mode === 'dark' ? '#003780' : '#ffffff',
}}
>
<Grid item sx={{ ml: 4, mr: 4 }}>
<Grid container>
Expand Down Expand Up @@ -502,10 +522,8 @@ export function List({ data, listPath }) {
<Grid container spacing={2}>
{filteredData.map((item) => {
return (

<Grid item xs={12} md={6} key={item.id}>
<ListItem

daysUntilNextPurchase={item.daysUntilNextPurchase}
dateLastPurchased={item.dateLastPurchased}
itemId={item.id}
Expand Down

0 comments on commit 4c62972

Please sign in to comment.