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:
parent
1f48f9067a
commit
f42e74e7c5
@ -21,10 +21,10 @@ 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';
|
||||||
import { CommandFeatures } from './CommandFeatures';
|
import { CommandSearchFeatures } from './CommandSearchFeatures';
|
||||||
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
||||||
import { CommandRecent } from './CommandRecent';
|
import { CommandQuickSuggestions } from './CommandQuickSuggestions';
|
||||||
import { CommandPages } from './CommandPages';
|
import { CommandSearchPages } from './CommandSearchPages';
|
||||||
import { CommandBarFeedback } from './CommandBarFeedback';
|
import { CommandBarFeedback } from './CommandBarFeedback';
|
||||||
import { RecentlyVisitedRecorder } from './RecentlyVisitedRecorder';
|
import { RecentlyVisitedRecorder } from './RecentlyVisitedRecorder';
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ export const CommandBar = () => {
|
|||||||
show={
|
show={
|
||||||
<CommandResultsPaper onKeyDownCapture={onKeyDown}>
|
<CommandResultsPaper onKeyDownCapture={onKeyDown}>
|
||||||
{searchString !== undefined && (
|
{searchString !== undefined && (
|
||||||
<CommandFeatures
|
<CommandSearchFeatures
|
||||||
searchString={searchString}
|
searchString={searchString}
|
||||||
setSearchedFlagCount={setSearchedFlagCount}
|
setSearchedFlagCount={setSearchedFlagCount}
|
||||||
onClick={clearSearchValue}
|
onClick={clearSearchValue}
|
||||||
@ -276,7 +276,7 @@ export const CommandBar = () => {
|
|||||||
onClick={clearSearchValue}
|
onClick={clearSearchValue}
|
||||||
items={searchedProjects}
|
items={searchedProjects}
|
||||||
/>
|
/>
|
||||||
<CommandPages
|
<CommandSearchPages
|
||||||
items={searchedPages}
|
items={searchedPages}
|
||||||
onClick={clearSearchValue}
|
onClick={clearSearchValue}
|
||||||
/>
|
/>
|
||||||
@ -293,7 +293,7 @@ export const CommandBar = () => {
|
|||||||
elseShow={
|
elseShow={
|
||||||
showSuggestions && (
|
showSuggestions && (
|
||||||
<CommandResultsPaper onKeyDownCapture={onKeyDown}>
|
<CommandResultsPaper onKeyDownCapture={onKeyDown}>
|
||||||
<CommandRecent
|
<CommandQuickSuggestions
|
||||||
routes={allRoutes}
|
routes={allRoutes}
|
||||||
onClick={clearSearchValue}
|
onClick={clearSearchValue}
|
||||||
/>
|
/>
|
||||||
|
@ -39,7 +39,7 @@ const toListItemButton = (
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CommandRecent = ({
|
export const CommandQuickSuggestions = ({
|
||||||
routes,
|
routes,
|
||||||
onClick,
|
onClick,
|
||||||
}: {
|
}: {
|
@ -10,7 +10,7 @@ interface ICommandBar {
|
|||||||
setSearchedFlagCount: (count: number) => void;
|
setSearchedFlagCount: (count: number) => void;
|
||||||
onClick: () => void;
|
onClick: () => void;
|
||||||
}
|
}
|
||||||
export const CommandFeatures = ({
|
export const CommandSearchFeatures = ({
|
||||||
searchString,
|
searchString,
|
||||||
setSearchedFlagCount,
|
setSearchedFlagCount,
|
||||||
onClick,
|
onClick,
|
@ -11,7 +11,7 @@ import {
|
|||||||
import { ListItemButton } from '@mui/material';
|
import { ListItemButton } from '@mui/material';
|
||||||
import { IconRenderer } from 'component/layout/MainLayout/NavigationSidebar/IconRenderer';
|
import { IconRenderer } from 'component/layout/MainLayout/NavigationSidebar/IconRenderer';
|
||||||
|
|
||||||
export const CommandPages = ({
|
export const CommandSearchPages = ({
|
||||||
items,
|
items,
|
||||||
onClick,
|
onClick,
|
||||||
}: {
|
}: {
|
Loading…
Reference in New Issue
Block a user