mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
chore: hide link behind flag
This commit is contained in:
parent
39be34dfcc
commit
0ccb040e8c
@ -34,6 +34,7 @@ import { ExportFlags } from './ExportFlags.tsx';
|
||||
import { createFeatureOverviewCell } from 'component/common/Table/cells/FeatureOverviewCell/FeatureOverviewCell';
|
||||
import { AvatarCell } from 'component/project/Project/PaginatedProjectFeatureToggles/AvatarCell';
|
||||
import { StatusCell } from './StatusCell/StatusCell.tsx';
|
||||
import { useUiFlag } from 'hooks/useUiFlag.ts';
|
||||
|
||||
export const featuresPlaceholder = Array(15).fill({
|
||||
name: 'Name of the feature',
|
||||
@ -69,6 +70,7 @@ export const FeatureToggleListTable: FC = () => {
|
||||
const isSmallScreen = useMediaQuery(theme.breakpoints.down('md'));
|
||||
const isMediumScreen = useMediaQuery(theme.breakpoints.down('lg'));
|
||||
const [showExportDialog, setShowExportDialog] = useState(false);
|
||||
const reportUnknownFlagsEnabled = useUiFlag('reportUnknownFlags');
|
||||
|
||||
const { setToastApiError } = useToast();
|
||||
|
||||
@ -259,14 +261,16 @@ export const FeatureToggleListTable: FC = () => {
|
||||
title='Flags overview'
|
||||
actions={
|
||||
<>
|
||||
<Link
|
||||
component={RouterLink}
|
||||
to='/unknown-flags'
|
||||
underline='always'
|
||||
sx={{ marginRight: 2, ...focusable(theme) }}
|
||||
>
|
||||
Unknown flags
|
||||
</Link>
|
||||
{reportUnknownFlagsEnabled && (
|
||||
<Link
|
||||
component={RouterLink}
|
||||
to='/unknown-flags'
|
||||
underline='always'
|
||||
sx={{ marginRight: 2, ...focusable(theme) }}
|
||||
>
|
||||
Unknown flags
|
||||
</Link>
|
||||
)}
|
||||
<Link
|
||||
component={RouterLink}
|
||||
to='/archive'
|
||||
|
Loading…
Reference in New Issue
Block a user