1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

chore: rename recent and page suggestions (#7484)

Renames and moves recently visited and page suggestions to match name
pattern
This commit is contained in:
David Leek 2024-06-28 12:18:27 +02:00 committed by GitHub
parent 5bd32f264d
commit d01aba955a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -14,13 +14,13 @@ import { useKeyboardShortcut } from 'hooks/useKeyboardShortcut';
import { SEARCH_INPUT } from 'utils/testIds';
import { useOnClickOutside } from 'hooks/useOnClickOutside';
import { useOnBlur } from 'hooks/useOnBlur';
import { RecentlyVisited } from './RecentlyVisited/RecentlyVisited';
import { CommandRecent } from './CommandRecent';
import { useRecentlyVisited } from 'hooks/useRecentlyVisited';
import {
CommandResultGroup,
type CommandResultGroupItem,
} from './RecentlyVisited/CommandResultGroup';
import { PageSuggestions } from './PageSuggestions';
import { CommandPageSuggestions } from './CommandPageSuggestions';
import { useRoutes } from 'component/layout/MainLayout/NavigationSidebar/useRoutes';
import { useAsyncDebounce } from 'react-table';
import useProjects from 'hooks/api/getters/useProjects/useProjects';
@ -269,11 +269,11 @@ export const CommandBar = () => {
elseShow={
showSuggestions && (
<CommandResultsPaper>
<RecentlyVisited
<CommandRecent
lastVisited={lastVisited}
routes={allRoutes}
/>
<PageSuggestions routes={allRoutes} />
<CommandPageSuggestions routes={allRoutes} />
</CommandResultsPaper>
)
}

View File

@ -74,7 +74,7 @@ const pages = [
'/strategies',
];
export const PageSuggestions = ({
export const CommandPageSuggestions = ({
routes,
}: {
routes: Record<string, { path: string; route: string; title: string }>;

View File

@ -207,7 +207,7 @@ const RecentlyVisitedProjectButton = ({
);
};
export const RecentlyVisited = ({
export const CommandRecent = ({
lastVisited,
routes,
}: {