Implemented on Click in the HomeTool.jsx
This commit is contained in:
parent
5ea0093eef
commit
8926b13317
@ -1,8 +1,8 @@
|
|||||||
import "./styles.sass";
|
import "./styles.sass";
|
||||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||||
|
|
||||||
export const HomeTool = ({icon, title, description}) => (
|
export const HomeTool = ({icon, title, description, onClick}) => (
|
||||||
<div className="home-tool">
|
<div className="home-tool" onClick={onClick}>
|
||||||
<FontAwesomeIcon icon={icon} />
|
<FontAwesomeIcon icon={icon} />
|
||||||
<h1>{title}</h1>
|
<h1>{title}</h1>
|
||||||
<p>{description}</p>
|
<p>{description}</p>
|
||||||
|
Reference in New Issue
Block a user