1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-24 01:18:01 +02: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 { SEARCH_INPUT } from 'utils/testIds';
import { useOnClickOutside } from 'hooks/useOnClickOutside'; import { useOnClickOutside } from 'hooks/useOnClickOutside';
import { useOnBlur } from 'hooks/useOnBlur'; import { useOnBlur } from 'hooks/useOnBlur';
import { RecentlyVisited } from './RecentlyVisited/RecentlyVisited'; import { CommandRecent } from './CommandRecent';
import { useRecentlyVisited } from 'hooks/useRecentlyVisited'; import { useRecentlyVisited } from 'hooks/useRecentlyVisited';
import { import {
CommandResultGroup, CommandResultGroup,
type CommandResultGroupItem, type CommandResultGroupItem,
} from './RecentlyVisited/CommandResultGroup'; } from './RecentlyVisited/CommandResultGroup';
import { PageSuggestions } from './PageSuggestions'; import { CommandPageSuggestions } from './CommandPageSuggestions';
import { useRoutes } from 'component/layout/MainLayout/NavigationSidebar/useRoutes'; import { useRoutes } from 'component/layout/MainLayout/NavigationSidebar/useRoutes';
import { useAsyncDebounce } from 'react-table'; import { useAsyncDebounce } from 'react-table';
import useProjects from 'hooks/api/getters/useProjects/useProjects'; import useProjects from 'hooks/api/getters/useProjects/useProjects';
@ -269,11 +269,11 @@ export const CommandBar = () => {
elseShow={ elseShow={
showSuggestions && ( showSuggestions && (
<CommandResultsPaper> <CommandResultsPaper>
<RecentlyVisited <CommandRecent
lastVisited={lastVisited} lastVisited={lastVisited}
routes={allRoutes} routes={allRoutes}
/> />
<PageSuggestions routes={allRoutes} /> <CommandPageSuggestions routes={allRoutes} />
</CommandResultsPaper> </CommandResultsPaper>
) )
} }

View File

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

View File

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