diff --git a/src/Components/HomePage/index.jsx b/src/Components/HomePage/index.jsx index 4d8b940..8e05ccb 100644 --- a/src/Components/HomePage/index.jsx +++ b/src/Components/HomePage/index.jsx @@ -11,6 +11,7 @@ import styles from "./style.module.scss"; import muza from '../../img/homePage/muza.png'; import Home from "../Home/Home"; +import { useNavigate } from "react-router-dom"; const APIURL = '' // const events = [ @@ -37,6 +38,7 @@ const APIURL = '' // // Добавьте другие мероприятия сюда // ]; const HomePage = () => { + return ( <> diff --git a/src/components/Home/Home.jsx b/src/components/Home/Home.jsx index 299803c..d72a72e 100644 --- a/src/components/Home/Home.jsx +++ b/src/components/Home/Home.jsx @@ -7,6 +7,7 @@ import EditForm from '../post/Meets'; import Grid from '@mui/material/Grid'; import Card from '../Card'; import Box from '@mui/material/Box'; +import { useNavigate } from 'react-router-dom'; function extractDateTime(dateString) { const dateTime = new Date(dateString); @@ -23,7 +24,11 @@ const meets = await httpApiMethods.GetMeetings() const Home = () => { const [count, setCount] = useState(7) - + const navigate = useNavigate() + + const handleNeed = () => { + navigate('/firstMeetAuth') + } const filterMeet = meets.filter( (item, index) => index <= count ) const allMeets = () => { setCount(meets.length) @@ -39,7 +44,7 @@ const Home = () => { -
+
{item.speackerImage}
{item.tags}