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) => {
|
||||
const theme = useTheme();
|
||||
|
||||
if (children === " ") {
|
||||
children = "\u00A0";
|
||||
}
|
||||
return (
|
||||
<Typography
|
||||
component="label"
|
||||
|
||||
@@ -217,7 +217,7 @@ const CreateMaintenanceWindowPage = () => {
|
||||
/>
|
||||
<Stack
|
||||
direction="row"
|
||||
alignItems="flex-end"
|
||||
alignItems="flex-start"
|
||||
spacing={theme.spacing(4)}
|
||||
>
|
||||
<Controller
|
||||
@@ -248,6 +248,7 @@ const CreateMaintenanceWindowPage = () => {
|
||||
defaultValue={defaults.durationUnit}
|
||||
render={({ field }) => (
|
||||
<Select
|
||||
fieldLabel=" "
|
||||
value={field.value}
|
||||
onChange={field.onChange}
|
||||
sx={{ minWidth: 120 }}
|
||||
|
||||
Reference in new issue
Block a user