diff --git a/src/pages/model-routes/components/fallback-modal.tsx b/src/pages/model-routes/components/fallback-modal.tsx deleted file mode 100644 index cc60af32..00000000 --- a/src/pages/model-routes/components/fallback-modal.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import FormDrawer from '@/pages/_components/form-drawer'; -import React, { useRef } from 'react'; -import { FormData, RouteItem as ListItem } from '../config/types'; -import FallbackSettings from '../forms/fallback-settings'; - -type AddModalProps = { - title: string; - open: boolean; - currentData?: ListItem; // Used when action is EDIT - onOk: (values: FormData) => void; - onCancel: () => void; -}; -const AddProvider: React.FC = ({ - title, - open, - currentData, - onOk, - onCancel -}) => { - const form = useRef(null); - - const handleSubmit = () => { - form.current?.submit(); - }; - - const onFinish = async (data: FormData) => { - onOk({ - ...data - }); - }; - - const handleCancel = () => { - form.current?.resetFields(); - onCancel(); - }; - - return ( - - - - ); -}; - -export default AddProvider;