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:
parent
5bd32f264d
commit
d01aba955a
@ -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>
|
||||
)
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ const pages = [
|
||||
'/strategies',
|
||||
];
|
||||
|
||||
export const PageSuggestions = ({
|
||||
export const CommandPageSuggestions = ({
|
||||
routes,
|
||||
}: {
|
||||
routes: Record<string, { path: string; route: string; title: string }>;
|
@ -207,7 +207,7 @@ const RecentlyVisitedProjectButton = ({
|
||||
);
|
||||
};
|
||||
|
||||
export const RecentlyVisited = ({
|
||||
export const CommandRecent = ({
|
||||
lastVisited,
|
||||
routes,
|
||||
}: {
|
Loading…
Reference in New Issue
Block a user