From 3bcc70e89b8657e4133a969087c7ccb663372f0c Mon Sep 17 00:00:00 2001 From: goodmice Date: Fri, 15 Oct 2021 11:23:19 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B0=D0=B1=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B8=D0=BC=D0=BF=D0=BE=D1=80=D1=82=D0=B0/?= =?UTF-8?q?=D1=8D=D0=BA=D1=81=D0=BF=D0=BE=D1=80=D1=82=D0=B0=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=20=D0=BA?= =?UTF-8?q?=D1=80=D0=BE=D0=BC=D0=B5=20"=D0=9F=D0=BB=D0=B0=D0=BD"=20=D0=B8?= =?UTF-8?q?=20"=D0=A4=D0=B0=D0=BA=D1=82"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/WellOperations/ImportExportBar.jsx | 15 +++++++++------ src/pages/WellOperations/index.jsx | 10 +++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/pages/WellOperations/ImportExportBar.jsx b/src/pages/WellOperations/ImportExportBar.jsx index 11addca..7357fa5 100644 --- a/src/pages/WellOperations/ImportExportBar.jsx +++ b/src/pages/WellOperations/ImportExportBar.jsx @@ -1,4 +1,4 @@ -import { Button, Tooltip, Modal } from "antd"; +import { Button, Tooltip, Modal } from 'antd' import {useState} from 'react' import { FileOutlined, ImportOutlined, ExportOutlined } from '@ant-design/icons' import { download } from '../../components/factory' @@ -6,7 +6,7 @@ import { ImportOperations } from './ImportOperations' const style = {margin:4} -export const ImportExportBar = ({idWell, onImported}) =>{ +export const ImportExportBar = ({idWell, onImported, disabled}) =>{ const [isImportModalVisible, setIsImportModalVisible] = useState(false) const downloadTemplate = async () => download(`/api/well/${idWell}/wellOperations/tamplate`) @@ -19,29 +19,32 @@ export const ImportExportBar = ({idWell, onImported}) =>{ } return <> - +