Implemented on Click in the HomeTool.jsx

This commit is contained in:
Mathias Wagner 2023-06-03 16:30:36 +02:00
parent 5ea0093eef
commit 8926b13317
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,8 +1,8 @@
import "./styles.sass";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
export const HomeTool = ({icon, title, description}) => (
<div className="home-tool">
export const HomeTool = ({icon, title, description, onClick}) => (
<div className="home-tool" onClick={onClick}>
<FontAwesomeIcon icon={icon} />
<h1>{title}</h1>
<p>{description}</p>