Rename prp grid => columns

This commit is contained in:
Mark Kaylor 2022-11-21 11:18:31 +01:00
parent 9f404467fa
commit 53166af4fe
2 changed files with 4 additions and 4 deletions

View File

@ -4,10 +4,10 @@ import { Grid, GridItem } from '@strapi/design-system/Grid';
import Inputs from '../../../components/Inputs';
import FieldComponent from '../../../components/FieldComponent';
const GridRow = ({ grid }) => {
const GridRow = ({ columns }) => {
return (
<Grid gap={4}>
{grid.map(({ fieldSchema, labelAction, metadatas, name, size, queryInfos }) => {
{columns.map(({ fieldSchema, labelAction, metadatas, name, size, queryInfos }) => {
const isComponent = fieldSchema.type === 'component';
if (isComponent) {
@ -50,7 +50,7 @@ const GridRow = ({ grid }) => {
};
GridRow.propTypes = {
grid: PropTypes.array.isRequired,
columns: PropTypes.array.isRequired,
};
export default GridRow;

View File

@ -156,7 +156,7 @@ const EditView = ({
>
<Stack spacing={6}>
{row.map((grid, gridRowIndex) => (
<GridRow grid={grid} key={gridRowIndex} />
<GridRow columns={grid} key={gridRowIndex} />
))}
</Stack>
</Box>