Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncomerci committed Jun 19, 2023
1 parent b67d437 commit b6b0770
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/Category/CategoryPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,24 @@ function getProposalTypeLabel(proposalType: ProposalType) {
const CategoryPill = ({ className, proposalType, size = 'default', isLink }: Props) => {
const colorsConfig = ColorsConfig[proposalType]
const pillClassNames = classNames('CategoryPill', className)
const href = isLink ? locations.proposals({ type: proposalType }) : ''
const Wrapper = isLink ? Link : 'div'
const href = isLink ? locations.proposals({ type: proposalType }) : undefined

return (
<>
<Mobile>
<Link href={href}>
<Wrapper href={href}>
<Pill style="light" color={colorsConfig} className={pillClassNames} size="small">
{getProposalTypeShortLabel(proposalType)}
</Pill>
</Link>
</Wrapper>
</Mobile>
<NotMobile>
<Link href={href}>
<Wrapper href={href}>
<Pill style="light" color={colorsConfig} className={pillClassNames} size={size}>
{getProposalTypeLabel(proposalType)}
</Pill>
</Link>
</Wrapper>
</NotMobile>
</>
)
Expand Down
Empty file removed src/images/.!16091!no-image.png
Empty file.

0 comments on commit b6b0770

Please sign in to comment.