diff --git a/src/components/results/securityanalysis/security-analysis-export-button.tsx b/src/components/results/securityanalysis/security-analysis-export-button.tsx index c75a2284b1..6469f3c4a7 100644 --- a/src/components/results/securityanalysis/security-analysis-export-button.tsx +++ b/src/components/results/securityanalysis/security-analysis-export-button.tsx @@ -5,8 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -import { useSnackMessage } from '@gridsuite/commons-ui'; -import { ExportButton } from 'components/utils/export-button'; +import { ExportCsvButton, useSnackMessage } from '@gridsuite/commons-ui'; import { UUID } from 'crypto'; import { FunctionComponent, useCallback, useEffect, useMemo, useState } from 'react'; import { useIntl } from 'react-intl'; @@ -118,7 +117,7 @@ export const SecurityAnalysisExportButton: FunctionComponent void; - isDownloadLoading?: boolean; // used mostly for previous Edge versions where download from backend file takes some time to begin - isDownloadSuccessful?: boolean; -} - -export const ExportButton: FunctionComponent = ({ - onClick, - disabled = false, - isDownloadLoading: isCsvLoading = false, - isDownloadSuccessful = false, -}) => { - return ( - - - - - {isDownloadSuccessful ? : } - - {isCsvLoading && ( - - )} - - - ); -};