Skip to content

Commit

Permalink
[docs] Disable ts switch if not ts version is available
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 17, 2018
1 parent d48d650 commit f6b0001
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/modules/components/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class Demo extends React.Component {
<span>
<IconButton
aria-label={tsTooltip}
disabled={!hasTSVersion}
onClick={this.handleCodeLanguageClick}
value="TS"
>
Expand Down

0 comments on commit f6b0001

Please sign in to comment.