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

Commit e58caf6

Browse files
committed
Remove changes on button component
1 parent 6dbfc9d commit e58caf6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/view/components/Button.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as React from "react";
22
import "../styles/Button.css";
3-
import { ViewStateContext } from "../context";
4-
import { VIEW_STATE } from "../constants";
53

64
export interface IButtonProps {
75
label: string;
@@ -17,8 +15,6 @@ const Button: React.FC<IButtonProps> = props => {
1715
const iconSvg: SVGElement = props.image as SVGElement;
1816
const buttonStyle = { width: props.width };
1917
const tabIndex = props.focusable ? 0 : -1;
20-
const isButtonDisabled =
21-
React.useContext(ViewStateContext) === VIEW_STATE.PAUSE;
2218

2319
return (
2420
<button
@@ -29,7 +25,6 @@ const Button: React.FC<IButtonProps> = props => {
2925
onClick={props.onClick}
3026
style={buttonStyle}
3127
tabIndex={tabIndex}
32-
disabled={isButtonDisabled}
3328
>
3429
{iconSvg}
3530
</button>

0 commit comments

Comments
 (0)