From 2200324e9e94eec322a76896f88e558794a3083a Mon Sep 17 00:00:00 2001 From: YasinShaikh123 <123150391+YasinShaikh123@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:20:40 +0530 Subject: [PATCH] sponsor active button --- src/Pages/Master/Sponser/AddSponser.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Pages/Master/Sponser/AddSponser.jsx b/src/Pages/Master/Sponser/AddSponser.jsx index f16c526..1f8452a 100644 --- a/src/Pages/Master/Sponser/AddSponser.jsx +++ b/src/Pages/Master/Sponser/AddSponser.jsx @@ -11,6 +11,7 @@ import {useCreateSponserMutation,useGetSponserByIdQuery,useUpdateSponserMutation import ToastBox from "../../../Components/ToastBox"; import FullscreenLoaders from "../../../Components/Loaders/FullscreenLoaders"; import CustomAlertDialog from "../../../Components/CustomAlertDialog"; +import SwitchButton from "../../../Components/SwitchButton"; // ======================= [validation] ========================= @@ -42,6 +43,7 @@ const AddSponser = () => { const [isLoadingBtn, setIsLoadingBtn] = useState(false); const [alert, setAlert] = useState(false); const [form, setForm] = useState(); + const [isSwitchOn, setIsSwitchOn] = useState(true); const [createSponser] = useCreateSponserMutation(); const [updateSponser] = useUpdateSponserMutation(); @@ -251,6 +253,12 @@ const AddSponser = () => { return ( + {/* ===================== [Switch Button] ======================== */} + + + + + {/* ====================== [Form Input] ====================== */} { onSubmit={handleSubmit(onSubmit)} submitTitle={params?.id ? "Update" : "Submit"} > - + {/* ======================= [Modal] =========================== */}