Added the disabled property to the Button.jsx
This commit is contained in:
parent
c4893b92b7
commit
a3f940263f
@ -1,8 +1,8 @@
|
||||
import "./styles.sass";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
|
||||
export const Button = ({icon, text, onClick}) => (
|
||||
<button className="btn" onClick={onClick}>
|
||||
export const Button = ({icon, text, onClick, disabled = false}) => (
|
||||
<button className="btn" onClick={onClick} disabled={disabled}>
|
||||
<FontAwesomeIcon icon={icon} />
|
||||
{text}
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user