From e42b9069fec8cac62a6f060b810840fc54671687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Wed, 1 Sep 2021 13:43:14 +0500 Subject: [PATCH] Move drillingProgramButton into documentTemplate header --- src/pages/Documents/DocumentsTemplate.jsx | 4 +++- src/pages/Documents/DrillingProgram.jsx | 23 +++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/pages/Documents/DocumentsTemplate.jsx b/src/pages/Documents/DocumentsTemplate.jsx index 4656628..b156cf9 100644 --- a/src/pages/Documents/DocumentsTemplate.jsx +++ b/src/pages/Documents/DocumentsTemplate.jsx @@ -17,7 +17,7 @@ const pageSize = 12 const { RangePicker } = DatePicker const { Search } = Input -export default function DocumentsTemplate({ idCategory, idWell, accept, onChange }) { +export default function DocumentsTemplate({ idCategory, idWell, accept, headerChild, onChange }) { const [page, setPage] = useState(1) const [filterDataRange, setFilterDataRange] = useState([]) const [filterCompanyName, setFilterCompanyName] = useState([]) @@ -181,6 +181,8 @@ export default function DocumentsTemplate({ idCategory, idWell, accept, onChange onUploadStart={() => setShowLoader(true)} onUploadComplete={handleUploadComplete}/> +    + {headerChild} + Программа бурения +
+ + + +
+ + return( - - - + headerChild={downloadButton} + onChange={filesUpdated} /> ) } \ No newline at end of file