Skip to content

Commit

Permalink
fix: issue counts in issue table (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiol authored Feb 28, 2024
1 parent 2e33d7d commit f275863
Showing 1 changed file with 2 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,35 +52,12 @@ const IssueTabelSelectBox: React.FC<IProps> = (props) => {
</div>
<p className="text-secondary ml-1.5">
{t('text.number-count', {
count: issueCountData?.find((v) => v.key)?.count ?? 0,
count:
issueCountData?.find((v) => v.key === issue.key)?.count ?? 0,
})}
</p>
</div>
))}
{/* {issueCountData?.map((issue) => (
<div
key={issue.key}
className={[
'flex min-w-[136px] cursor-pointer items-center justify-between rounded border px-3 py-2.5',
currentIssueKey === issue.key ||
(currentIssueKey === undefined && issue.key === 'total')
? 'border-fill-primary'
: 'opacity-50',
].join(' ')}
onClick={() => onChangeOption(issue)}
>
<div className="flex flex-1 items-center gap-2">
<IssueCircle issueKey={issue.key} />
<span className="whitespace-nowrap">
{ISSUES(t).find((v) => v.key === issue.key)?.name ??
t('text.all')}
</span>
</div>
<p className="text-secondary ml-1.5">
{t('text.number-count', { count: issue.count })}
</p>
</div>
))} */}
</div>
);
};
Expand Down

0 comments on commit f275863

Please sign in to comment.