mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Finish refacto layout
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
065aecb1ad
commit
e1dfc58f2e
@ -45,8 +45,8 @@ const NonRepeatableComponent = ({ componentUid, isFromDynamicZone, name }) => {
|
||||
<div key={fieldName} className={`col-${size}`}>
|
||||
<Inputs
|
||||
keys={keys}
|
||||
layout={componentLayoutData}
|
||||
name={fieldName}
|
||||
fieldSchema={fieldSchema}
|
||||
metadatas={metadatas}
|
||||
componentUid={componentUid}
|
||||
queryInfos={queryInfos}
|
||||
/>
|
||||
|
@ -19,7 +19,6 @@ import { connect, select } from './utils';
|
||||
|
||||
const DraggedItem = ({
|
||||
componentFieldName,
|
||||
componentUid,
|
||||
doesPreviousFieldContainErrorsAndIsOpen,
|
||||
hasErrors,
|
||||
hasMinError,
|
||||
@ -201,10 +200,9 @@ const DraggedItem = ({
|
||||
<div key={name} className={`col-${size}`}>
|
||||
<Inputs
|
||||
autoFocus={false}
|
||||
componentUid={componentUid}
|
||||
fieldSchema={fieldSchema}
|
||||
keys={keys}
|
||||
layout={schema}
|
||||
name={name}
|
||||
metadatas={metadatas}
|
||||
onBlur={hasErrors ? checkFormErrors : null}
|
||||
queryInfos={queryInfos}
|
||||
/>
|
||||
@ -233,7 +231,6 @@ DraggedItem.defaultProps = {
|
||||
|
||||
DraggedItem.propTypes = {
|
||||
componentFieldName: PropTypes.string.isRequired,
|
||||
componentUid: PropTypes.string.isRequired,
|
||||
doesPreviousFieldContainErrorsAndIsOpen: PropTypes.bool,
|
||||
hasErrors: PropTypes.bool,
|
||||
hasMinError: PropTypes.bool,
|
||||
|
@ -61,8 +61,6 @@ const EditView = ({ components, currentEnvironment, models, plugins, slug }) =>
|
||||
return <LoadingIndicatorPage />;
|
||||
}
|
||||
|
||||
console.log({ layout });
|
||||
|
||||
return (
|
||||
<EditViewProvider
|
||||
allowedActions={allowedActions}
|
||||
|
Loading…
x
Reference in New Issue
Block a user