mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 23:29:33 +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 Inputs from '../../../components/Inputs';
|
||||||
import FieldComponent from '../../../components/FieldComponent';
|
import FieldComponent from '../../../components/FieldComponent';
|
||||||
|
|
||||||
const GridRow = ({ grid }) => {
|
const GridRow = ({ columns }) => {
|
||||||
return (
|
return (
|
||||||
<Grid gap={4}>
|
<Grid gap={4}>
|
||||||
{grid.map(({ fieldSchema, labelAction, metadatas, name, size, queryInfos }) => {
|
{columns.map(({ fieldSchema, labelAction, metadatas, name, size, queryInfos }) => {
|
||||||
const isComponent = fieldSchema.type === 'component';
|
const isComponent = fieldSchema.type === 'component';
|
||||||
|
|
||||||
if (isComponent) {
|
if (isComponent) {
|
||||||
@ -50,7 +50,7 @@ const GridRow = ({ grid }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
GridRow.propTypes = {
|
GridRow.propTypes = {
|
||||||
grid: PropTypes.array.isRequired,
|
columns: PropTypes.array.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default GridRow;
|
export default GridRow;
|
||||||
|
|||||||
@ -156,7 +156,7 @@ const EditView = ({
|
|||||||
>
|
>
|
||||||
<Stack spacing={6}>
|
<Stack spacing={6}>
|
||||||
{row.map((grid, gridRowIndex) => (
|
{row.map((grid, gridRowIndex) => (
|
||||||
<GridRow grid={grid} key={gridRowIndex} />
|
<GridRow columns={grid} key={gridRowIndex} />
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user