diff --git a/src/apps/schema/src/app/components/AddFieldModal/DefaultValue.tsx b/src/apps/schema/src/app/components/AddFieldModal/DefaultValue.tsx index d6ad06ebcf..4a57292a00 100644 --- a/src/apps/schema/src/app/components/AddFieldModal/DefaultValue.tsx +++ b/src/apps/schema/src/app/components/AddFieldModal/DefaultValue.tsx @@ -4,6 +4,7 @@ import { FormHelperText, Checkbox, Typography, + FormControlLabel, } from "@mui/material"; import { FormValue } from "./views/FieldForm"; import { MaxLengths } from "../../../../../content-editor/src/app/components/Editor/Editor"; @@ -40,32 +41,42 @@ export const DefaultValue = ({ options, }: DefaultValueProps) => { return ( - - { - setIsDefaultValueEnabled(event.target.checked); - if (!event.target.checked) { - onChange(null); - setIsDefaultValueEnabled(false); - } + + { + setIsDefaultValueEnabled(event.target.checked); + if (!event.target.checked) { + onChange(null); + setIsDefaultValueEnabled(false); + } + }} + /> + } + label={ + + + Default Value + + + Set a predefined value for this field + + + } /> - - Default Value - - - Set a predefined value for this field - {isDefaultValueEnabled && ( } diff --git a/src/apps/schema/src/app/components/AddFieldModal/MediaRules.tsx b/src/apps/schema/src/app/components/AddFieldModal/MediaRules.tsx index 3341b3a7c7..953ff49683 100644 --- a/src/apps/schema/src/app/components/AddFieldModal/MediaRules.tsx +++ b/src/apps/schema/src/app/components/AddFieldModal/MediaRules.tsx @@ -68,11 +68,6 @@ export const MediaRules = ({ control={ ) => { const { checked } = e.target;