1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Mark Switcher and FormSwitch as deprecated

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-12-27 12:27:53 +03:00
parent 75ef7aca44
commit c16d2aa6da
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,9 @@ const useStyles = makeStyles({
}, },
}); });
/**
* @deprecated Use <Switch/> instead from "../switch.tsx".
*/
export function FormSwitch(props: FormControlLabelProps) { export function FormSwitch(props: FormControlLabelProps) {
const classes = useStyles(); const classes = useStyles();

View File

@ -31,6 +31,9 @@ interface Props extends SwitchProps {
classes: Styles; classes: Styles;
} }
/**
* @deprecated Use <Switch/> instead from "../switch.tsx".
*/
export const Switcher = withStyles((theme: Theme) => export const Switcher = withStyles((theme: Theme) =>
createStyles({ createStyles({
root: { root: {