Skip to content

Commit

Permalink
actually add the conditional...
Browse files Browse the repository at this point in the history
  • Loading branch information
krischarbonneau committed Feb 3, 2023
1 parent f49be7e commit 3c50d0a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/InputLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ const InputLabel: FC<InputLabelProps> = ({
}) => {
return (
<label id={id} htmlFor={htmlFor} className="mb-2 block font-bold">
<b className="text-accent-error mr-0.5" aria-hidden="true">
*
</b>
{required && (
<b className="text-accent-error mr-0.5" aria-hidden="true">
*
</b>
)}
{label}
{required && (
<strong className="text-accent-error">&nbsp;{textRequired}</strong>
Expand Down

0 comments on commit 3c50d0a

Please sign in to comment.