Skip to content

Commit

Permalink
feat(PriorityDropdown): remove Dot
Browse files Browse the repository at this point in the history
  • Loading branch information
troff8 authored and Troff8 committed Jun 16, 2023
1 parent 6dffdd0 commit e5c859f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/PriorityDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { Button, Dropdown } from '@taskany/bricks';

import { Priority, priorityColorsMap } from '../types/priority';

import { StateDot } from './StateDot';
import { ColorizedMenuItem } from './ColorizedMenuItem';
import { PriorityText } from './PriorityText/PriorityText';
import { PriorityText, getPriorityText } from './PriorityText/PriorityText';

interface PriorityDropdownProps {
text: React.ComponentProps<typeof Button>['text'];
Expand Down Expand Up @@ -34,7 +33,7 @@ export const PriorityDropdown = React.forwardRef<HTMLDivElement, PriorityDropdow
ref={props.ref}
onClick={props.onClick}
disabled={props.disabled}
iconLeft={<StateDot hue={priorityColorsMap[props.value as Priority]} />}
text={getPriorityText(props.value)}
/>
)}
renderItem={(props) => (
Expand Down

0 comments on commit e5c859f

Please sign in to comment.