Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/main #31Main page 애러해결 #37

Merged
merged 1 commit into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/layout/BottomNavi.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const BottomNavi = () => {
</div>
<div
onClick={() => {
navigate();
navigate("/");
}}
className="w-[24px] h-[24px]"
>
Expand Down
11 changes: 2 additions & 9 deletions src/components/main/Main.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, { useState } from "react";
import defaultprofileImg from "../../img/User-86.png";
import frends from "../../img/Friends.png";
import Vector from "../../img/Vector.png";
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { useDispatch, useSelector } from "react-redux";
Expand Down Expand Up @@ -34,7 +32,7 @@ const Main = () => {
}, [dispatch, navigate, email]);

console.log(schedules);

return (
<div className="container md">
<div className="grid grid-flow-row ml-[20px] mr-[20px]">
Expand All @@ -57,12 +55,7 @@ const Main = () => {
<div>
<div className="flex flex-col gap-[30px] mt-[28px] rounded-[10px]">
{schedules.map((list) => {
return (
<MainScheduleCards
key={list.eventId}
schedules={list}
/>
);
return <MainScheduleCards key={list.eventId} schedules={list} />;
})}
</div>
</div>
Expand Down