diff --git a/.env b/.env index baf030d..e4cd019 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ VITE_TOKEN_NAME = 'admin_token' VITE_REFRESH_TOKEN_NAME = 'admin_refresh_token' -VITE_BASE_URL = 'https://danak-dsc-api.run.danakcorp.com' -# VITE_BASE_URL = 'http://192.168.0.221:4000' \ No newline at end of file +# VITE_BASE_URL = 'https://danak-dsc-api.run.danakcorp.com' +VITE_BASE_URL = 'http://192.168.0.245:4000' \ No newline at end of file diff --git a/src/components/ModalConfrim.tsx b/src/components/ModalConfrim.tsx index 769ac1f..ae92f28 100644 --- a/src/components/ModalConfrim.tsx +++ b/src/components/ModalConfrim.tsx @@ -1,18 +1,22 @@ -import { FC } from 'react' +import { FC, useState } from 'react' import DefaulModal from './DefaulModal' import { useTranslation } from 'react-i18next' import Button from './Button' +import Textarea from './Textarea' type Props = { isLoading?: boolean, close: () => void, isOpen: boolean, - onConfrim: () => void, + onConfrim: (text?: string) => void, + label?: string, + isHasDescription?: boolean } const ModalConfrim: FC = (props: Props) => { const { t } = useTranslation('global') + const [description, setDescription] = useState('') return ( = (props: Props) => { isHeader >
-
{t('confrim.content')}
+
+ { + props.label ? + props.label + : + t('confrim.content') + } + + { + props.isHasDescription && +
+