empty field label
This commit is contained in:
1 parent
6e66a18535
commit
2ecdc2096e
2 files changed
+5
-2
No files matched your search
@@ -9,7 +9,9 @@ interface FieldLabelProps {
|
|||||||
|
|
||||||
export const FieldLabel = ({ children, required = false, htmlFor }: FieldLabelProps) => {
|
export const FieldLabel = ({ children, required = false, htmlFor }: FieldLabelProps) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
if (children === " ") {
|
||||||
|
children = "\u00A0";
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Typography
|
<Typography
|
||||||
component="label"
|
component="label"
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
/>
|
/>
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="flex-end"
|
alignItems="flex-start"
|
||||||
spacing={theme.spacing(4)}
|
spacing={theme.spacing(4)}
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
@@ -248,6 +248,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
defaultValue={defaults.durationUnit}
|
defaultValue={defaults.durationUnit}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<Select
|
<Select
|
||||||
|
fieldLabel=" "
|
||||||
value={field.value}
|
value={field.value}
|
||||||
onChange={field.onChange}
|
onChange={field.onChange}
|
||||||
sx={{ minWidth: 120 }}
|
sx={{ minWidth: 120 }}
|
||||||
|
|||||||
Reference in new issue
Block a user