mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
fix: add Project and Playground icons for command bar (#9677)
Updating `IconRenderer` component in the `NavigationSidebar`. It will fix icons not showing up for command bar search results.
This commit is contained in:
parent
99d1c7f6c3
commit
e436ef29f1
@ -1,3 +1,4 @@
|
|||||||
|
import type { ComponentProps, FC } from 'react';
|
||||||
import EmptyIcon from '@mui/icons-material/CheckBoxOutlineBlankOutlined';
|
import EmptyIcon from '@mui/icons-material/CheckBoxOutlineBlankOutlined';
|
||||||
import type SvgIcon from '@mui/material/SvgIcon/SvgIcon';
|
import type SvgIcon from '@mui/material/SvgIcon/SvgIcon';
|
||||||
import ApplicationsIcon from '@mui/icons-material/AppsOutlined';
|
import ApplicationsIcon from '@mui/icons-material/AppsOutlined';
|
||||||
@ -29,10 +30,14 @@ import GitHubIcon from '@mui/icons-material/GitHub';
|
|||||||
import LibraryBooksIcon from '@mui/icons-material/LibraryBooks';
|
import LibraryBooksIcon from '@mui/icons-material/LibraryBooks';
|
||||||
import FactCheckOutlinedIcon from '@mui/icons-material/FactCheckOutlined';
|
import FactCheckOutlinedIcon from '@mui/icons-material/FactCheckOutlined';
|
||||||
import PersonalDashboardIcon from '@mui/icons-material/DashboardOutlined';
|
import PersonalDashboardIcon from '@mui/icons-material/DashboardOutlined';
|
||||||
import type { FC } from 'react';
|
import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon';
|
||||||
|
import PlaygroundIcon from '@mui/icons-material/AutoFixNormal';
|
||||||
|
|
||||||
// TODO: move to routes
|
// TODO: move to routes
|
||||||
const icons: Record<string, typeof SvgIcon> = {
|
const icons: Record<
|
||||||
|
string,
|
||||||
|
typeof SvgIcon | FC<ComponentProps<typeof SvgIcon>>
|
||||||
|
> = {
|
||||||
'/search': SearchIcon,
|
'/search': SearchIcon,
|
||||||
'/applications': ApplicationsIcon,
|
'/applications': ApplicationsIcon,
|
||||||
'/context': ContextFieldsIcon,
|
'/context': ContextFieldsIcon,
|
||||||
@ -60,6 +65,8 @@ const icons: Record<string, typeof SvgIcon> = {
|
|||||||
'/history': EventLogIcon,
|
'/history': EventLogIcon,
|
||||||
'/release-templates': FactCheckOutlinedIcon,
|
'/release-templates': FactCheckOutlinedIcon,
|
||||||
'/personal': PersonalDashboardIcon,
|
'/personal': PersonalDashboardIcon,
|
||||||
|
'/projects': ProjectIcon,
|
||||||
|
'/playground': PlaygroundIcon,
|
||||||
GitHub: GitHubIcon,
|
GitHub: GitHubIcon,
|
||||||
Documentation: LibraryBooksIcon,
|
Documentation: LibraryBooksIcon,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user