Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #180 from Ultimaker/fix-beta-pill
Browse files Browse the repository at this point in the history
Fix beta pill
  • Loading branch information
ImreBognarUltimaker authored Apr 18, 2019
2 parents 1fdaad6 + a375b48 commit 644218d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ultimaker/react-web-components",
"version": "4.0.1",
"version": "4.0.2",
"description": "Ultimaker's unified react component and style library for front-end web",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/components/beta_pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ export const BetaPill: React.StatelessComponent<BetaPillProps> = ({
<div className="beta-pill">
<Tooltip
tooltipText={betaExplanationText}
disableTooltip={betaExplanationText.length === 0}
disableTooltip={!betaExplanationText}
>
<Pill active>BETA</Pill>
</Tooltip>
</div>
);

BetaPill.displayName = 'BetaPill';

export default BetaPill;

0 comments on commit 644218d

Please sign in to comment.