Create event modal
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import styles from "./ToolBar.module.css"
|
||||
import {Link} from "react-router";
|
||||
import Filter from "../Filter/Filter.jsx";
|
||||
import {useEffect, useState} from "react";
|
||||
import SearchBar from "../SearchBar/SearchBar.jsx";
|
||||
import CreateEventBtn from "../createEventBtn/CreateEventBtn.jsx";
|
||||
|
||||
|
||||
function ToolBar({setFilters, filters, showCreate = true}) {
|
||||
@@ -37,11 +37,7 @@ function ToolBar({setFilters, filters, showCreate = true}) {
|
||||
) : null}
|
||||
<div className={styles.eventsButtons}>
|
||||
{showCreate ? (
|
||||
<Link
|
||||
to="/event/create"
|
||||
className={`${styles.createButton} glassCard`}>
|
||||
+
|
||||
</Link>
|
||||
<CreateEventBtn />
|
||||
) : null}
|
||||
|
||||
<button className={`${styles.searchButton} glassCard`} onClick={() => setIsSearchVisible(true)}>
|
||||
|
||||
Reference in New Issue
Block a user