Skip to content

Commit

Permalink
style: add props double asterisk
Browse files Browse the repository at this point in the history
  • Loading branch information
uigywnkiub committed Jul 31, 2024
1 parent 9582a85 commit e8a6197
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/ui/info-badge.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
type TProps = {
text: string
withAsterisk?: boolean
withDoubleAsterisk?: boolean
}

export default function InfoBadge({ text, withAsterisk = true }: TProps) {
export default function InfoBadge({
text,
withAsterisk = true,
withDoubleAsterisk = false,
}: TProps) {
return (
<span className='text-xxs text-default-300 md:text-xs'>
{withAsterisk && ' * '}
{withDoubleAsterisk && ' ** '}
{!withDoubleAsterisk && withAsterisk && ' * '}
{text}
</span>
)
Expand Down

0 comments on commit e8a6197

Please sign in to comment.