Fix types
This commit is contained in:
parent
91571d378e
commit
1fab184f4f
3 changed files with 19 additions and 19 deletions
|
@ -11,10 +11,10 @@ import { FormattedMessage } from "react-intl";
|
||||||
|
|
||||||
const styles = createStyles({
|
const styles = createStyles({
|
||||||
formControl: {
|
formControl: {
|
||||||
width: "100%",
|
|
||||||
"& label": {
|
"& label": {
|
||||||
top: "-3px"
|
top: "-3px"
|
||||||
}
|
},
|
||||||
|
width: "100%"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,13 @@ const styles = (theme: Theme) =>
|
||||||
},
|
},
|
||||||
cardSubtitle: {
|
cardSubtitle: {
|
||||||
color: theme.palette.primary.main,
|
color: theme.palette.primary.main,
|
||||||
|
fontSize: 12,
|
||||||
height: "20px",
|
height: "20px",
|
||||||
lineHeight: 0.9,
|
lineHeight: 0.9
|
||||||
fontSize: 12
|
|
||||||
},
|
},
|
||||||
cardTitle: {
|
cardTitle: {
|
||||||
fontWeight: 500 as 500,
|
fontSize: 20,
|
||||||
fontSize: 20
|
fontWeight: 500 as 500
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
|
|
26
src/theme.ts
26
src/theme.ts
|
@ -17,7 +17,7 @@ export type IThemeColors = Record<
|
||||||
> & {
|
> & {
|
||||||
background: Record<"default" | "paper", string>;
|
background: Record<"default" | "paper", string>;
|
||||||
} & {
|
} & {
|
||||||
checkbox: Record<"default" | "disabled", string>;
|
checkbox: Record<"default", string>;
|
||||||
} & {
|
} & {
|
||||||
divider: string;
|
divider: string;
|
||||||
} & {
|
} & {
|
||||||
|
@ -136,11 +136,11 @@ export default (colors: IThemeColors): Theme =>
|
||||||
},
|
},
|
||||||
MuiInputBase: {
|
MuiInputBase: {
|
||||||
input: {
|
input: {
|
||||||
zIndex: 1,
|
|
||||||
"&::placeholder": {
|
"&::placeholder": {
|
||||||
color: colors.font.gray,
|
color: colors.font.gray,
|
||||||
opacity: "1 !important" as any
|
opacity: "1 !important" as any
|
||||||
}
|
},
|
||||||
|
zIndex: 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MuiInputLabel: {
|
MuiInputLabel: {
|
||||||
|
@ -233,8 +233,8 @@ export default (colors: IThemeColors): Theme =>
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
"& fieldset": {
|
"& fieldset": {
|
||||||
borderColor: [[colors.input.border], "!important"] as any,
|
background: colors.background.paper,
|
||||||
background: colors.background.paper
|
borderColor: [[colors.input.border], "!important"] as any
|
||||||
},
|
},
|
||||||
"& legend": {
|
"& legend": {
|
||||||
display: "none"
|
display: "none"
|
||||||
|
@ -274,11 +274,11 @@ export default (colors: IThemeColors): Theme =>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MuiSelect: {
|
MuiSelect: {
|
||||||
outlined: {
|
|
||||||
padding: ["20px 12px 8px 12px", "!important"] as any
|
|
||||||
},
|
|
||||||
disabled: {
|
disabled: {
|
||||||
color: colors.input.disabledText
|
color: colors.input.disabledText
|
||||||
|
},
|
||||||
|
outlined: {
|
||||||
|
padding: ["20px 12px 8px 12px", "!important"] as any
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MuiSnackbarContent: {
|
MuiSnackbarContent: {
|
||||||
|
@ -291,9 +291,9 @@ export default (colors: IThemeColors): Theme =>
|
||||||
},
|
},
|
||||||
root: {
|
root: {
|
||||||
backgroundColor: colors.background.paper,
|
backgroundColor: colors.background.paper,
|
||||||
color: colors.font.default,
|
|
||||||
boxShadow:
|
boxShadow:
|
||||||
"0 6px 10px 0px rgba(0, 0, 0, 0.15), 0 1px 18px 0px rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.10)"
|
"0 6px 10px 0px rgba(0, 0, 0, 0.15), 0 1px 18px 0px rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.10)",
|
||||||
|
color: colors.font.default
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MuiSwitch: {
|
MuiSwitch: {
|
||||||
|
@ -404,6 +404,9 @@ export default (colors: IThemeColors): Theme =>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
palette: {
|
palette: {
|
||||||
|
action: {
|
||||||
|
active: colors.checkbox.default
|
||||||
|
},
|
||||||
background: colors.background,
|
background: colors.background,
|
||||||
divider: colors.divider,
|
divider: colors.divider,
|
||||||
error: {
|
error: {
|
||||||
|
@ -423,9 +426,6 @@ export default (colors: IThemeColors): Theme =>
|
||||||
hint: colors.font.gray,
|
hint: colors.font.gray,
|
||||||
primary: colors.font.default,
|
primary: colors.font.default,
|
||||||
secondary: colors.font.gray
|
secondary: colors.font.gray
|
||||||
},
|
|
||||||
action: {
|
|
||||||
active: colors.checkbox.default
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
Loading…
Reference in a new issue