1
0
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:
Nuno Góis 2025-09-01 18:06:14 +01:00
parent 39be34dfcc
commit 0ccb040e8c
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -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,6 +261,7 @@ export const FeatureToggleListTable: FC = () => {
title='Flags overview'
actions={
<>
{reportUnknownFlagsEnabled && (
<Link
component={RouterLink}
to='/unknown-flags'
@ -267,6 +270,7 @@ export const FeatureToggleListTable: FC = () => {
>
Unknown flags
</Link>
)}
<Link
component={RouterLink}
to='/archive'