Update event in header
This commit is contained in:
1 parent
ce3b3fbaed
commit
31729986e1
2 files changed
+9
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useEffect, useState, useContext } from "react";
|
||||
import { useState, useContext } from "react";
|
||||
import Event from "./components/Event/Event.jsx";
|
||||
import styles from "./EventsPage.module.css";
|
||||
import ToolBar from "../../components/ToolBar/ToolBar.jsx";
|
||||
@@ -8,13 +8,7 @@ import { EventContext } from "../../contexts/events/EventContext.js";
|
||||
|
||||
function EventsPage(){
|
||||
|
||||
const { updateEvent, events } = useContext(EventContext);
|
||||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
updateEvent();
|
||||
}) ()
|
||||
}, []);
|
||||
const { events } = useContext(EventContext);
|
||||
|
||||
const [filters, setFilters] = useState({
|
||||
alphabetical: "asc",
|
||||
|
||||
Reference in new issue
Block a user