normalize
This commit is contained in:
1 parent
4b82129199
commit
63031e938e
2 files changed
+3
-2
No files matched your search
@@ -5,6 +5,7 @@ import { typographyLevels } from "@/Utils/Theme/Palette";
|
|||||||
import { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import { FieldLabel } from "./FieldLabel";
|
import { FieldLabel } from "./FieldLabel";
|
||||||
|
import { LAYOUT } from "@/Utils/Theme/constants";
|
||||||
|
|
||||||
interface TextInputProps extends Omit<TextFieldProps, "label"> {
|
interface TextInputProps extends Omit<TextFieldProps, "label"> {
|
||||||
fieldLabel?: string;
|
fieldLabel?: string;
|
||||||
@@ -56,7 +57,7 @@ export const TextInput = forwardRef<HTMLInputElement, TextInputProps>(function T
|
|||||||
if (fieldLabel) {
|
if (fieldLabel) {
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
spacing={theme.spacing(2)}
|
spacing={theme.spacing(LAYOUT.XXS)}
|
||||||
sx={sx}
|
sx={sx}
|
||||||
>
|
>
|
||||||
<FieldLabel required={required}>{fieldLabel}</FieldLabel>
|
<FieldLabel required={required}>{fieldLabel}</FieldLabel>
|
||||||
|
|||||||
@@ -18,5 +18,5 @@ export const LAYOUT = {
|
|||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const HOVER = {
|
export const HOVER = {
|
||||||
DARKEN: 0.06,
|
DARKEN: 0.06, // This is a coefficient for darkening function
|
||||||
} as const;
|
} as const;
|
||||||
Reference in new issue
Block a user