mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-06 20:19:58 -05:00
Added the Button disabled property
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import "./styles.sass";
|
||||
|
||||
export const Button = ({color, text, icon, onClick}) => {
|
||||
export const Button = ({color, text, icon, onClick, disabled}) => {
|
||||
return (
|
||||
<button className={`btn btn-color-${color}`} onClick={onClick}>
|
||||
<FontAwesomeIcon icon={icon} />
|
||||
<button className={`btn btn-color-${color}`} onClick={onClick} disabled={disabled}>
|
||||
<FontAwesomeIcon icon={icon}/>
|
||||
<h1>{text}</h1>
|
||||
</button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user