From e5c9f44f4c08937339105b766668e0892907969f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sanguu516=28=EB=B0=95=EC=83=81=ED=98=84=29?= Date: Fri, 13 Oct 2023 13:13:39 +0900 Subject: [PATCH] =?UTF-8?q?laanc=20step1=20popover=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/laanc/LaancStep1.js | 73 ++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/src/views/laanc/LaancStep1.js b/src/views/laanc/LaancStep1.js index ccfd613..e76cae0 100644 --- a/src/views/laanc/LaancStep1.js +++ b/src/views/laanc/LaancStep1.js @@ -12,7 +12,8 @@ import { AlertCircle, CheckCircle, XCircle, - AlertTriangle + AlertTriangle, + Info } from 'react-feather'; import { ErrorModal } from '../../components/modal/ErrorModal'; import moment from 'moment'; @@ -26,6 +27,10 @@ import { ModalFooter, Alert, FormGroup, + Popover, + PopoverHeader, + UncontrolledPopover, + PopoverBody, Label, Input } from 'reactstrap'; @@ -56,6 +61,10 @@ export default function LaancStep1({ const queryParams = new URLSearchParams(location.search); const mapParam = queryParams.get('map'); + const [popoverCommercial, setPopoverCommercial] = useState(false); + const [popoverSchFltStDt, setPopoverSchFltStDt] = useState(false); + const [popoverSchFltEndDt, setPopoverSchFltEndDt] = useState(false); + const [modal2, setModal2] = useState({ isOpen: false, title: '', @@ -130,6 +139,15 @@ export default function LaancStep1({ schFltEndDtRef.current.flatpickr.close(); }; + const toggle = type => { + if (type === 'commercial') { + setPopoverCommercial(!popoverCommercial); + } else if (type === 'schFltStDt') { + setPopoverSchFltStDt(!popoverSchFltStDt); + } else if (type === 'schFltEndDt') { + setPopoverSchFltEndDt(!popoverSchFltEndDt); + } + }; return ( <> @@ -163,6 +181,24 @@ export default function LaancStep1({
비행 유형
+