-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: address breaking changes in ui badge
- tag was renamed to badge - transparent prop was renamed to outlined
- Loading branch information
1 parent
30a2d8e
commit a96407a
Showing
6 changed files
with
27 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Badge, type BadgeProps } from '@leather.io/ui'; | ||
|
||
import { BasicTooltip } from '../tooltip/basic-tooltip'; | ||
|
||
type TooltipSideType = 'bottom' | 'left' | 'right' | 'top'; | ||
|
||
interface BadgeWithTooltipProps extends BadgeProps { | ||
hoverLabel: string; | ||
side?: TooltipSideType; | ||
} | ||
export function BadgeWithTooltip({ hoverLabel, side = 'bottom', ...props }: BadgeWithTooltipProps) { | ||
return ( | ||
<BasicTooltip label={hoverLabel} side={side}> | ||
<Badge {...props} /> | ||
</BasicTooltip> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.