From b6b0770c2f703e74badf13558b21eb5a96a2378a Mon Sep 17 00:00:00 2001 From: ncomerci Date: Mon, 19 Jun 2023 15:39:53 -0300 Subject: [PATCH] small fixes --- src/components/Category/CategoryPill.tsx | 11 ++++++----- src/images/.!16091!no-image.png | 0 2 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 src/images/.!16091!no-image.png diff --git a/src/components/Category/CategoryPill.tsx b/src/components/Category/CategoryPill.tsx index 71b272b02..f53bd8113 100644 --- a/src/components/Category/CategoryPill.tsx +++ b/src/components/Category/CategoryPill.tsx @@ -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 ( <> - + {getProposalTypeShortLabel(proposalType)} - + - + {getProposalTypeLabel(proposalType)} - + ) diff --git a/src/images/.!16091!no-image.png b/src/images/.!16091!no-image.png deleted file mode 100644 index e69de29bb..000000000