Skip to content

Commit

Permalink
💄 Remove padding for JSON view mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Jul 11, 2024
1 parent 94c6862 commit d633102
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/ComponentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ const ComponentPreviewWrapper: React.FC<ComponentPreviewWrapperProps> = ({
onChange={event => setpreviewMode(event.target.value as PreviewState)}
/>
</div>
<div className="card-body">
{previewMode === 'JSON' ? (
<JSONEditor
wrapperProps={{className: 'json-editor'}}
value={component}
onChange={onComponentChange}
theme={builderContext.theme}
/>
) : (

{previewMode === 'JSON' ? (
<JSONEditor
wrapperProps={{className: 'json-editor'}}
value={component}
onChange={onComponentChange}
theme={builderContext.theme}
/>
) : (
<div className="card-body">
<Formik
enableReinitialize
initialValues={initialValues}
Expand All @@ -61,8 +62,8 @@ const ComponentPreviewWrapper: React.FC<ComponentPreviewWrapperProps> = ({
{children}
</div>
</Formik>
)}
</div>
</div>
)}
</div>
);
};
Expand Down

0 comments on commit d633102

Please sign in to comment.