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] =========================== */}