Skip to content

Commit

Permalink
fix: remove deprecated Grid component and replace with Grid2 component
Browse files Browse the repository at this point in the history
  • Loading branch information
kweeuhree committed Oct 18, 2024
1 parent a7ddba0 commit a82d8fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/List.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useState } from 'react';
import { useEnsureListPath, useUrgency } from '../hooks';
import { getUrgency } from '../utils/urgencyUtils';
import { List as UnorderedList, Box, Grid } from '@mui/material';
import { List as UnorderedList, Box } from '@mui/material';
import Grid from '@mui/material/Grid2';
import { ListItem, AddItems, TextInputElement } from '../components';

// React.memo is needed to prevent unnecessary re-renders of the List component
Expand Down Expand Up @@ -47,10 +48,10 @@ export const List = React.memo(function List({ data, listPath }) {
columns={16}
justifyContent="space-between"
>
<Grid item size={{ xs: 2, sm: 4, md: 4 }}>
<Grid size={{ xs: 2, sm: 4, md: 4 }}>
<AddItems items={data} />
</Grid>
<Grid item size={{ xs: 2, sm: 4, md: 4 }}>
<Grid size={{ xs: 2, sm: 4, md: 4 }}>
<form onSubmit={(event) => event.preventDefault()}>
<TextInputElement
id="search-item"
Expand Down

0 comments on commit a82d8fa

Please sign in to comment.