Added the disabled property to the Button.jsx

This commit is contained in:
Mathias Wagner 2023-06-02 18:54:03 +02:00
parent c4893b92b7
commit a3f940263f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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>