mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Rename prp grid => columns
This commit is contained in:
parent
9f404467fa
commit
53166af4fe
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user