The "Link erstellen" button in the ManageArea.jsx now loads the default link module

This commit is contained in:
2022-12-28 03:39:54 +01:00
parent de391028fe
commit c4cdd422e8

View File

@ -2,12 +2,18 @@ import "./styles.sass";
import TextBox from "@/common/components/TextBox";
import Button from "@/common/components/Button";
import {faSearch} from "@fortawesome/free-solid-svg-icons";
import LinkDialog from "@/pages/Home/components/LinkDialog";
import {useState} from "react";
export const ManageArea = () => {
const [showDialog, setShowDialog] = useState(false);
return (
<div className="manage-area">
<LinkDialog module="link" isOpen={showDialog} close={() => setShowDialog(false)}/>
<TextBox icon={faSearch} placeholder="Link suchen"/>
<Button text="Link erstellen" />
<Button text="Link erstellen" onClick={() => setShowDialog(true)} />
</div>
)
}