1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

chore: add alert

This commit is contained in:
Nuno Góis 2025-09-02 16:08:55 +01:00
parent d14573b8f7
commit 653a8bd1ac
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -9,7 +9,7 @@ import {
useTable,
} from 'react-table';
import { SearchHighlightProvider } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext';
import { useMediaQuery } from '@mui/material';
import { Alert, useMediaQuery } from '@mui/material';
import { sortTypes } from 'utils/sortTypes';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
@ -252,6 +252,12 @@ export const ArchiveTable = ({
/>
}
>
{rows.length >= 50 && (
<Alert color='info' sx={{ mb: 2 }}>
A maximum of 50 archived flags are displayed. If you
don't see the one you're looking for, try using search.
</Alert>
)}
<SearchHighlightProvider value={getSearchText(searchValue)}>
<VirtualizedTable
rows={rows}