1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: rename command bar files (#7516)

Now we have nice logical naming


![image](https://github.com/Unleash/unleash/assets/964450/c24041bc-db94-463e-aa9c-d7ecd484ab12)
This commit is contained in:
Jaanus Sellin 2024-07-02 13:59:18 +03:00 committed by GitHub
parent 1f48f9067a
commit f42e74e7c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View File

@ -21,10 +21,10 @@ 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';
import { CommandFeatures } from './CommandFeatures';
import { CommandSearchFeatures } from './CommandSearchFeatures';
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
import { CommandRecent } from './CommandRecent';
import { CommandPages } from './CommandPages';
import { CommandQuickSuggestions } from './CommandQuickSuggestions';
import { CommandSearchPages } from './CommandSearchPages';
import { CommandBarFeedback } from './CommandBarFeedback';
import { RecentlyVisitedRecorder } from './RecentlyVisitedRecorder';
@ -264,7 +264,7 @@ export const CommandBar = () => {
show={
<CommandResultsPaper onKeyDownCapture={onKeyDown}>
{searchString !== undefined && (
<CommandFeatures
<CommandSearchFeatures
searchString={searchString}
setSearchedFlagCount={setSearchedFlagCount}
onClick={clearSearchValue}
@ -276,7 +276,7 @@ export const CommandBar = () => {
onClick={clearSearchValue}
items={searchedProjects}
/>
<CommandPages
<CommandSearchPages
items={searchedPages}
onClick={clearSearchValue}
/>
@ -293,7 +293,7 @@ export const CommandBar = () => {
elseShow={
showSuggestions && (
<CommandResultsPaper onKeyDownCapture={onKeyDown}>
<CommandRecent
<CommandQuickSuggestions
routes={allRoutes}
onClick={clearSearchValue}
/>

View File

@ -39,7 +39,7 @@ const toListItemButton = (
);
};
export const CommandRecent = ({
export const CommandQuickSuggestions = ({
routes,
onClick,
}: {

View File

@ -10,7 +10,7 @@ interface ICommandBar {
setSearchedFlagCount: (count: number) => void;
onClick: () => void;
}
export const CommandFeatures = ({
export const CommandSearchFeatures = ({
searchString,
setSearchedFlagCount,
onClick,

View File

@ -11,7 +11,7 @@ import {
import { ListItemButton } from '@mui/material';
import { IconRenderer } from 'component/layout/MainLayout/NavigationSidebar/IconRenderer';
export const CommandPages = ({
export const CommandSearchPages = ({
items,
onClick,
}: {