diff --git a/src/pages/ContactFormPage/NewField/SwitchNewField.tsx b/src/pages/ContactFormPage/NewField/SwitchNewField.tsx index 614cf465..dd8dda31 100644 --- a/src/pages/ContactFormPage/NewField/SwitchNewField.tsx +++ b/src/pages/ContactFormPage/NewField/SwitchNewField.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import NewFieldParent from "./NewFieldParent"; import {FormControlLabel, Switch} from "@mui/material"; import SelectMask from "../SelectMask"; +import CustomSwitch from "@ui_kit/CustomSwitch"; @@ -29,7 +30,7 @@ export default function SwitchNewField({switchState ='name'}: Props) { } + control={} label="Маска для телефона" labelPlacement="start" sx={{ diff --git a/src/pages/InstallQuiz/VidjetInstall.tsx b/src/pages/InstallQuiz/VidjetInstall.tsx index 99fb982d..6bf08a89 100644 --- a/src/pages/InstallQuiz/VidjetInstall.tsx +++ b/src/pages/InstallQuiz/VidjetInstall.tsx @@ -16,6 +16,7 @@ import VidjetImg from "../../assets/VidjetImg.png" import SelectableButton from "../../components/CreateQuiz/SelectableButton"; import LDownButton from "@icons/InstallQuizIcon/LDownButton"; import RDownButton from "@icons/InstallQuizIcon/RDownButton"; +import CustomRadio from "@ui_kit/CustomRadio"; @@ -103,13 +104,13 @@ export default function VidjetInstall () { } + control={} label="Да" /> } + control={} label="Нет" /> diff --git a/src/ui_kit/CustomRadio.tsx b/src/ui_kit/CustomRadio.tsx new file mode 100644 index 00000000..8b5a3f0a --- /dev/null +++ b/src/ui_kit/CustomRadio.tsx @@ -0,0 +1,15 @@ +import {IconButton} from "@mui/material"; +import {useState} from "react"; + + +export default function CustomRadio () { + const [active, setActive] = useState(false); + return ( + setActive(!active)}> + + + + + + ) +} \ No newline at end of file diff --git a/src/ui_kit/CustomSwitch.tsx b/src/ui_kit/CustomSwitch.tsx index a575f19d..8bb53b12 100644 --- a/src/ui_kit/CustomSwitch.tsx +++ b/src/ui_kit/CustomSwitch.tsx @@ -5,7 +5,7 @@ import {useState} from "react"; export default function CustomSwitch () { const [active, setActive] = useState(false); return ( - setActive(!active)}> + setActive(!active)}>