Skip to content

Commit

Permalink
fix(ColorizedMenuItem): return StateDot as marker
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jun 29, 2023
1 parent c2d0ed4 commit 8ba9427
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ColorizedMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { MarkedListItem } from '@taskany/bricks';

import { usePageContext } from '../hooks/usePageContext';

import { StateDot } from './StateDot';

export const ColorizedMenuItem: FC<{
hue: number;
children?: React.ReactNode;
Expand All @@ -15,7 +17,7 @@ export const ColorizedMenuItem: FC<{
const hoverColor = useMemo(() => colorLayer(hue, 5, hue === 1 ? 0 : undefined)[themeId], [hue, themeId]);

return (
<MarkedListItem hoverColor={hoverColor} {...props}>
<MarkedListItem hoverColor={hoverColor} mark={<StateDot hue={hue} />} {...props}>
{children}
</MarkedListItem>
);
Expand Down

0 comments on commit 8ba9427

Please sign in to comment.