Skip to content

Commit a82d8fa

Browse files
author
Nika Kolesnikova
committed
fix: remove deprecated Grid component and replace with Grid2 component
1 parent a7ddba0 commit a82d8fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/views/List.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, { useState } from 'react';
22
import { useEnsureListPath, useUrgency } from '../hooks';
33
import { getUrgency } from '../utils/urgencyUtils';
4-
import { List as UnorderedList, Box, Grid } from '@mui/material';
4+
import { List as UnorderedList, Box } from '@mui/material';
5+
import Grid from '@mui/material/Grid2';
56
import { ListItem, AddItems, TextInputElement } from '../components';
67

78
// React.memo is needed to prevent unnecessary re-renders of the List component
@@ -47,10 +48,10 @@ export const List = React.memo(function List({ data, listPath }) {
4748
columns={16}
4849
justifyContent="space-between"
4950
>
50-
<Grid item size={{ xs: 2, sm: 4, md: 4 }}>
51+
<Grid size={{ xs: 2, sm: 4, md: 4 }}>
5152
<AddItems items={data} />
5253
</Grid>
53-
<Grid item size={{ xs: 2, sm: 4, md: 4 }}>
54+
<Grid size={{ xs: 2, sm: 4, md: 4 }}>
5455
<form onSubmit={(event) => event.preventDefault()}>
5556
<TextInputElement
5657
id="search-item"

0 commit comments

Comments
 (0)