Skip to content

Commit 3b44212

Browse files
authored
Merge pull request #138 from gnims-project/dev
최종 배포 merge
2 parents 40517d4 + 975dc25 commit 3b44212

File tree

4 files changed

+30
-19
lines changed

4 files changed

+30
-19
lines changed

src/components/follow/UserSearch.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const UserSearch = () => {
5252
}}
5353
>
5454
<img
55-
className="absolute top-[15px] right-[40px]"
55+
className="absolute top-[15px] right-[15px]"
5656
src={searchIcon}
5757
alt="돋보기 아이콘"
5858
/>

src/components/login/NaverLogin.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { useEffect, useRef } from "react";
2+
import { useNavigate } from "react-router-dom";
23
import NaverUnion from "../../img/NaverUnion.png";
34

45
const NaverLogin = () => {
6+
const navigate = useNavigate();
57
const naverRef = useRef();
68
const { naver } = window;
79

@@ -21,7 +23,9 @@ const NaverLogin = () => {
2123
};
2224
//원형아이콘클릭해도 네이버로그인이 가능.
2325
const handleClick = () => {
24-
naverRef.current.children[0].click();
26+
navigate("/developing");
27+
28+
// naverRef.current.children[0].click();
2529
};
2630
// 화면 첫 렌더링이후 바로 실행
2731
useEffect(() => {

src/components/main/Main.jsx

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ const Main = () => {
1313
const { schedules } = useSelector((state) => state.ScheduleSlice);
1414
const [sortList, setSortList] = useState("D-Day");
1515
const [modalOpen, setModalOpen] = useState(false);
16-
const welcomText = [
17-
"환영합니다.",
18-
"좋은하루 되세요!",
19-
"안녕하세요.",
20-
];
16+
const welcomText = ["환영합니다.", "좋은하루 되세요!", "안녕하세요."];
2117

2218
const showModalHandler = () => {
2319
setModalOpen(true);
@@ -33,32 +29,41 @@ const Main = () => {
3329
<div className="container">
3430
<div className="grid grid-flow-row gap-[26px] ml-[20px] mr-[20px] mb-[75px]">
3531
<div className="mt-[30px] h-[56px] bg-[#FFFFFF] rounded-[10px] drop-shadow-lg">
36-
<p className="leading-[36px] p-[10px] font-[700] text-[20px] text-textNavy">
37-
{nickName}{welcomText[getRandom]}
38-
</p>
32+
<p className="leading-[36px] p-[10px] font-[700] text-[20px] text-textNavy">
33+
{nickName}{welcomText[getRandom]}
34+
</p>
3935
</div>
4036
<div className="flex cursor-pointer ">
41-
<div
37+
<div
4238
onClick={showModalHandler}
4339
className="bg-white flex gap-[6px] p-[10px] text-center items-center h-[40px] border border-solid border-[#E8E8E8] rounded-[39px] shadow-md"
4440
>
4541
<div className="shadow-sm">
46-
<img src={desc} className="h-[15.5px] w-[13.54px]" alt="화살표모양, 오름차순정렬"/>
42+
<img
43+
src={desc}
44+
className="h-[15.5px] w-[13.54px]"
45+
alt="화살표모양, 오름차순정렬"
46+
/>
4747
</div>
4848
<div>{sortList}</div>
4949
</div>
5050
</div>
5151
<div>
52-
{/* <InfiniteScroll /> */}
52+
{/* <InfiniteScroll /> */}
5353
<div className="flex flex-col gap-[30px] rounded-[10px] ">
54-
{ schedules?.map((list) => { return (<MainScheduleCards key={list.eventId} schedules={list} />); })}
54+
{schedules?.map((list) => {
55+
return (
56+
<MainScheduleCards key={list.eventId} schedules={list} />
57+
);
58+
})}
5559
</div>
5660
</div>
5761
</div>
5862
</div>
5963
<div className="fixed bottom-0">
60-
{modalOpen ? false : <BottomNavi />}
61-
{modalOpen && (<SelectorSort setModalOpen={setModalOpen} setSortList={setSortList} /> )}
64+
{/* {modalOpen ? false : <BottomNavi />} */}
65+
<BottomNavi />
66+
{/* {modalOpen && (<SelectorSort setModalOpen={setModalOpen} setSortList={setSortList} /> )} */}
6267
</div>
6368
</>
6469
);

src/components/mypage/Profile.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ const Profile = () => {
2323
const nickname = sessionStorage.getItem("nickname");
2424
const email = sessionStorage.getItem("email");
2525
const profileImage = sessionStorage.getItem("profileImage");
26-
const moveToFeedbackForm = (window.location.href =
27-
"https://docs.google.com/forms/d/e/1FAIpQLSdOP_FEmMG5f0OtAER0ha4PR53XdXX6qVGLGMxYevd_ixD4QA/viewform");
26+
const FeedbackForm =
27+
"https://docs.google.com/forms/d/e/1FAIpQLSdOP_FEmMG5f0OtAER0ha4PR53XdXX6qVGLGMxYevd_ixD4QA/viewform";
2828

2929
//페이지 렌더링시 팔로우 정보를 가져와야함
3030
useEffect(() => {
@@ -116,7 +116,9 @@ const Profile = () => {
116116
<img src={Vector} alt="화살표" className="h-[18px] w-[10px]" />
117117
</div>
118118
<div
119-
onClick={moveToFeedbackForm}
119+
onClick={() => {
120+
window.open(FeedbackForm);
121+
}}
120122
className="flex gap-[130px] p-[15px] border-b-[1px] border-[#BBD7FF] border-solid bg-white w-[375px] h-[50px] cursor-pointer"
121123
>
122124
<span className="text-sm w-[175px] h-[20px]">

0 commit comments

Comments
 (0)