Skip to content

Commit a8f1268

Browse files
Merge pull request #124 from gnims-project/dev
Upload/Main Merge #100
2 parents 596349c + ffae7e6 commit a8f1268

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

src/components/main/Main.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ import SelectorSort from "../modal/SelectorSort";
99
const Main = () => {
1010
const dispatch = useDispatch();
1111
const nickName = sessionStorage.getItem("nickname");
12-
const getRandom = Math.floor(Math.random() * (4 + 0) + 0);
12+
const getRandom = Math.floor(Math.random() * (3 + 0) + 0);
1313
const { schedules } = useSelector((state) => state.ScheduleSlice);
1414
const [sortList, setSortList] = useState("D-Day");
1515
const [modalOpen, setModalOpen] = useState(false);
1616
const welcomText = [
1717
"환영합니다.",
18-
"오늘도 그님스가 응원할게요.",
1918
"좋은하루 되세요!",
2019
"안녕하세요.",
2120
];

src/components/mypage/PageInfoCard.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import React from "react";
33
const PageInfoCard = ({ profileImg, nickname, children }) => {
44
return (
55
<div>
6-
<div className="flex p-5 gap-[30px] justify-items-center">
7-
<div className="flex-none p-2 w-[86px] h-[86px] ">
6+
<div className="h-full flex p-5 gap-[30px] justify-items-center">
7+
<div className="flex-[50%] cursor-pointer">
88
<img
9-
className="rounded-full"
9+
className="rounded-full w-[86px] h-[86px] "
1010
src={profileImg}
1111
alt="사용자 프로필 사진"
1212
/>
1313
</div>
14-
<div className="pt-2 border-2 w-full">
14+
<div className="pt-2 border-2 w-full ">
1515
<div className="text-[18px] pt-[12px] leading-[21px] w-[198px]">
1616
<span className="font-[600]">{nickname}</span>{children}
1717
</div>

src/components/mypage/PastEvents.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const PastEvents = () => {
1919

2020
return (
2121
<div className="container container-md pr-[19px] pl-[21px]">
22-
<div className="grid grid-flow-row gap-[24px]">
22+
<div className="grid grid-flow-row gap-[24px] ">
2323
<div>
2424
<PageInfoCard profileImg={profileImg} nickname={nickname}>
25-
의 멋진 일대기를<p>돌아볼까요?</p>
25+
,<p>멋진 일대기를 돌아볼까요?</p>
2626
</PageInfoCard>
2727
</div>
2828
<div className="grid grid-flow-row gap-[30px]">

src/components/mypage/ScheduleInvitation.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const ScheduleInvitation = () => {
3333

3434
return (
3535
<div>
36-
<div className="flex p-5 gap-[30px] justify-items-center">
36+
<div className="flex gap-[30px] ">
3737
<PageInfoCard profileImg={profileImage} nickname={nickname}>
38-
에게 온 일정 초대를 한 번에 볼 수 있어요.
38+
에게 <p>온 일정 초대를 한 번에 볼 수 있어요.</p>
3939
</PageInfoCard>
4040
</div>
4141
<div>

src/redux/modules/LoginSlice.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ export const __kakaologin = createAsyncThunk(
5757
if (res.data.message !== "non-member") {
5858
const accessToken = res.headers.get("Authorization");
5959
const nickname = res.data.data.nickname;
60+
const userId = res.data.data.userId;
6061
console.log(nickname);
6162
sessionStorage.setItem("token", accessToken);
6263
sessionStorage.setItem("nickname", nickname);
64+
sessionStorage.setItem("userId", userId);
65+
6366
alert("그님스에 오신걸 환영합니다");
6467
return window.location.assign("/main");
6568

0 commit comments

Comments
 (0)