[WEB-5129] chore: icons revamp (#7958)
* chore: code refactor * chore: code refactor
This commit is contained in:
parent
cfb4a8212c
commit
56007e7d47
9 changed files with 21 additions and 26 deletions
|
|
@ -3,7 +3,6 @@ import {
|
|||
CalendarCheck2,
|
||||
CalendarClock,
|
||||
CalendarDays,
|
||||
ContrastIcon,
|
||||
LayersIcon,
|
||||
Link2,
|
||||
Paperclip,
|
||||
|
|
@ -13,7 +12,7 @@ import {
|
|||
Users,
|
||||
} from "lucide-react";
|
||||
// types
|
||||
import { DoubleCircleIcon, ISvgIcons, ModuleIcon } from "@plane/propel/icons";
|
||||
import { CycleIcon, DoubleCircleIcon, ISvgIcons, ModuleIcon } from "@plane/propel/icons";
|
||||
import { IGroupByColumn, IIssueDisplayProperties, TGetColumns, TSpreadsheetColumn } from "@plane/types";
|
||||
// components
|
||||
import {
|
||||
|
|
@ -72,7 +71,7 @@ export const SpreadSheetPropertyIconMap: Record<string, FC<ISvgIcons>> = {
|
|||
Triangle: Triangle,
|
||||
Tag: Tag,
|
||||
ModuleIcon: ModuleIcon,
|
||||
ContrastIcon: ContrastIcon,
|
||||
ContrastIcon: CycleIcon,
|
||||
Signal: Signal,
|
||||
CalendarClock: CalendarClock,
|
||||
DoubleCircleIcon: DoubleCircleIcon,
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ import {
|
|||
} from "lucide-react";
|
||||
// plane imports
|
||||
import {
|
||||
ContrastIcon,
|
||||
CycleGroupIcon,
|
||||
DiceIcon,
|
||||
CycleIcon,
|
||||
ModuleIcon,
|
||||
DoubleCircleIcon,
|
||||
PriorityIcon,
|
||||
StateGroupIcon,
|
||||
|
|
@ -189,7 +189,7 @@ export const useWorkItemFiltersConfig = (props: TUseWorkItemFiltersConfigProps):
|
|||
() =>
|
||||
getCycleFilterConfig<TWorkItemFilterProperty>("cycle_id")({
|
||||
isEnabled: isFilterEnabled("cycle_id") && project?.cycle_view === true && cycles !== undefined,
|
||||
filterIcon: ContrastIcon,
|
||||
filterIcon: CycleIcon,
|
||||
getOptionIcon: (cycleGroup) => <CycleGroupIcon cycleGroup={cycleGroup} className="h-3.5 w-3.5 flex-shrink-0" />,
|
||||
cycles: cycles ?? [],
|
||||
...operatorConfigs,
|
||||
|
|
@ -202,8 +202,8 @@ export const useWorkItemFiltersConfig = (props: TUseWorkItemFiltersConfigProps):
|
|||
() =>
|
||||
getModuleFilterConfig<TWorkItemFilterProperty>("module_id")({
|
||||
isEnabled: isFilterEnabled("module_id") && project?.module_view === true && modules !== undefined,
|
||||
filterIcon: DiceIcon,
|
||||
getOptionIcon: () => <DiceIcon className="h-3 w-3 flex-shrink-0" />,
|
||||
filterIcon: ModuleIcon,
|
||||
getOptionIcon: () => <ModuleIcon className="h-3 w-3 flex-shrink-0" />,
|
||||
modules: modules ?? [],
|
||||
...operatorConfigs,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue