The "Link erstellen" button in the ManageArea.jsx now loads the default link module
This commit is contained in:
@ -2,12 +2,18 @@ import "./styles.sass";
|
|||||||
import TextBox from "@/common/components/TextBox";
|
import TextBox from "@/common/components/TextBox";
|
||||||
import Button from "@/common/components/Button";
|
import Button from "@/common/components/Button";
|
||||||
import {faSearch} from "@fortawesome/free-solid-svg-icons";
|
import {faSearch} from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import LinkDialog from "@/pages/Home/components/LinkDialog";
|
||||||
|
import {useState} from "react";
|
||||||
|
|
||||||
export const ManageArea = () => {
|
export const ManageArea = () => {
|
||||||
|
|
||||||
|
const [showDialog, setShowDialog] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="manage-area">
|
<div className="manage-area">
|
||||||
|
<LinkDialog module="link" isOpen={showDialog} close={() => setShowDialog(false)}/>
|
||||||
<TextBox icon={faSearch} placeholder="Link suchen"/>
|
<TextBox icon={faSearch} placeholder="Link suchen"/>
|
||||||
<Button text="Link erstellen" />
|
<Button text="Link erstellen" onClick={() => setShowDialog(true)} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
Reference in New Issue
Block a user