1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: add export button behind flag (#3416)

This commit is contained in:
Jaanus Sellin 2023-03-29 10:02:44 +03:00 committed by GitHub
parent e16bc56173
commit 7af5023511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,9 @@ export const ProjectFeaturesBatchActions: FC<
return ( return (
<> <>
<ArchiveButton projectId={projectId} features={selectedIds} /> <ArchiveButton projectId={projectId} features={selectedIds} />
<ConditionallyRender
condition={Boolean(uiConfig?.flags?.featuresExportImport)}
show={
<Button <Button
startIcon={<FileDownload />} startIcon={<FileDownload />}
variant="outlined" variant="outlined"
@ -54,6 +57,8 @@ export const ProjectFeaturesBatchActions: FC<
> >
Export Export
</Button> </Button>
}
/>
<ManageTags projectId={projectId} data={selectedData} /> <ManageTags projectId={projectId} data={selectedData} />
<MoreActions projectId={projectId} data={selectedData} /> <MoreActions projectId={projectId} data={selectedData} />
<ConditionallyRender <ConditionallyRender