Skip to content

Commit

Permalink
chore: rename recent and page suggestions (#7484)
Browse files Browse the repository at this point in the history
Renames and moves recently visited and page suggestions to match name
pattern
  • Loading branch information
daveleek authored Jun 28, 2024
1 parent 5bd32f2 commit d01aba9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/component/commandBar/CommandBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -269,11 +269,11 @@ export const CommandBar = () => {
elseShow={
showSuggestions && (
<CommandResultsPaper>
<RecentlyVisited
<CommandRecent
lastVisited={lastVisited}
routes={allRoutes}
/>
<PageSuggestions routes={allRoutes} />
<CommandPageSuggestions routes={allRoutes} />
</CommandResultsPaper>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const pages = [
'/strategies',
];

export const PageSuggestions = ({
export const CommandPageSuggestions = ({
routes,
}: {
routes: Record<string, { path: string; route: string; title: string }>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const RecentlyVisitedProjectButton = ({
);
};

export const RecentlyVisited = ({
export const CommandRecent = ({
lastVisited,
routes,
}: {
Expand Down

0 comments on commit d01aba9

Please sign in to comment.