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:
parent
5bd32f264d
commit
d01aba955a
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -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 }>;
|
@ -207,7 +207,7 @@ const RecentlyVisitedProjectButton = ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const RecentlyVisited = ({
|
export const CommandRecent = ({
|
||||||
lastVisited,
|
lastVisited,
|
||||||
routes,
|
routes,
|
||||||
}: {
|
}: {
|
Loading…
Reference in New Issue
Block a user