From a18cd21caeb4fc49622987d1b4ae7561bb1de224 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Mon, 25 Jul 2022 11:07:35 +0900 Subject: [PATCH] fix: Grid excel download rename --- src/views/biz/admin/judge/JudgeRegistReview.jsx | 4 ++-- src/views/biz/admin/parking/ParkingRegister.jsx | 4 ++-- src/views/cmm/file-ctl/ExcelDownload.jsx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/biz/admin/judge/JudgeRegistReview.jsx b/src/views/biz/admin/judge/JudgeRegistReview.jsx index c790298..bef0534 100644 --- a/src/views/biz/admin/judge/JudgeRegistReview.jsx +++ b/src/views/biz/admin/judge/JudgeRegistReview.jsx @@ -17,7 +17,7 @@ import xitCmm, { ErrorToast, saveAlert } from 'commons/XitCmm'; import CmmModal from 'views/cmm/CmmModal'; import JudgeTargetSaveForm from 'views/biz/admin/judge/JudgeTargetSaveForm'; import NumberFormat from 'react-number-format'; -import ExcelDownload from 'views/cmm/file-ctl/ExcelDownload'; +import ExcelDownloadGrid from 'views/cmm/file-ctl/ExcelDownloadGrid'; import { findJudgeTargets, saveJudgeTargets } from 'apis/judge'; import PropTypes from 'prop-types'; import getYear from 'date-fns/getYear'; @@ -204,7 +204,7 @@ const JudgeRegistReview = ({ scDatagb, menuName }) => { - { - + diff --git a/src/views/cmm/file-ctl/ExcelDownload.jsx b/src/views/cmm/file-ctl/ExcelDownload.jsx index 4570c1d..8b261f0 100644 --- a/src/views/cmm/file-ctl/ExcelDownload.jsx +++ b/src/views/cmm/file-ctl/ExcelDownload.jsx @@ -5,7 +5,7 @@ import * as Excel from 'exceljs'; import saveAs from 'file-saver'; import { useAlert } from 'react-alert'; -const ExcelDownload = ({ fileName, gridColumns, excelDatas, isDisabled = true }) => { +const ExcelDownloadGrid = ({ fileName, gridColumns, excelDatas, isDisabled = true }) => { const alert = useAlert(); const handleExcelDownload = () => { @@ -101,11 +101,11 @@ const ExcelDownload = ({ fileName, gridColumns, excelDatas, isDisabled = true }) ); }; -ExcelDownload.propTypes = { +ExcelDownloadGrid.propTypes = { fileName: PropTypes.string.isRequired, gridColumns: PropTypes.array.isRequired, excelDatas: PropTypes.array.isRequired, isDisabled: PropTypes.bool.isRequired }; -export default ExcelDownload; +export default ExcelDownloadGrid;