Move createEventBtn
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import styles from "./ToolBar.module.css"
|
||||
import { useContext } from "react";
|
||||
import CreateEventBtn from "../createEventBtn/CreateEventBtn.jsx";
|
||||
import CreateEventBtn from "./tools/createEventBtn/CreateEventBtn.jsx";
|
||||
import { AuthContext } from "../../contexts/auth/AuthContext.js";
|
||||
import SearchBtn from "./tools/SearchBtn.tsx";
|
||||
import FilterBtn from "./tools/FilterBtn.tsx";
|
||||
@@ -14,7 +14,6 @@ function ToolBar({setFilters, filters, showCreate = true}) {
|
||||
{showCreate && user.isAdmin ? (
|
||||
<CreateEventBtn />
|
||||
) : null}
|
||||
|
||||
<SearchBtn />
|
||||
<FilterBtn setFilters={setFilters} filters={filters} />
|
||||
</div>
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
import styles from "./createEventBtn.module.css"
|
||||
import { useState, useContext } from "react";
|
||||
import Modal from "../ui/modal/modal.tsx";
|
||||
import Button from "../ui/button/button.tsx";
|
||||
import TextInput from "../ui/input/input.tsx";
|
||||
import { EventContext } from "../../contexts/events/EventContext.js";
|
||||
import Modal from "../../../ui/modal/modal.tsx";
|
||||
import Button from "../../../ui/button/button.tsx";
|
||||
import TextInput from "../../../ui/input/input.tsx";
|
||||
import { EventContext } from "../../../../contexts/events/EventContext.js";
|
||||
|
||||
|
||||
export default function CreateEventBtn() {
|
||||
Reference in New Issue
Block a user