-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from rktdnjs/develop
[5주차] : 5주차 개발 코드 Merge 및 일부 리팩토링
- Loading branch information
Showing
20 changed files
with
142 additions
and
93 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import OtherNav from '../atoms/OtherNav'; | ||
import Footer from '../atoms/Footer'; | ||
|
||
const MyPageTemplate = () => { | ||
return ( | ||
<div className="page--layout"> | ||
<OtherNav /> | ||
<div className="text-center">임시 마이페이지입니다</div> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MyPageTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Swal from 'sweetalert2'; | ||
import MyPageTemplate from '../components/templates/MyPageTemplate'; | ||
import { loginNeedMessage } from '../utils/alert'; | ||
|
||
const MyPage = () => { | ||
const navigate = useNavigate(); | ||
|
||
// 마이페이지 접속시 로그인 상태가 아니라면 로그인 페이지로 이동 | ||
useEffect(() => { | ||
if (localStorage.getItem('accessToken') == null) { | ||
Swal.fire(loginNeedMessage); | ||
navigate('/login'); | ||
} | ||
}, [navigate]); | ||
|
||
return <MyPageTemplate />; | ||
}; | ||
|
||
export default MyPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Link } from 'react-router-dom'; | ||
import Button from '../components/atoms/Button'; | ||
import OtherNav from '../components/atoms/OtherNav'; | ||
|
||
const PostWriteIntroPage = () => { | ||
return ( | ||
<div className="page--layout bg-sky-blue flex flex-col justify-between"> | ||
<OtherNav iconColor="#fff" bgColor="#000" /> | ||
<div> | ||
<div className="text-white p-8"> | ||
<div className="font-bold text-xl">어떤 음료를 픽업 받으실 건가요?</div> | ||
<div>픽업을 위한 정보를 입력합니다.</div> | ||
</div> | ||
<div className="flex justify-center mb-14"> | ||
<Link to="/post-write"> | ||
<Button width="w-[19rem]" height=" h-[2.5rem]" bgColor="bg-white" textColor="text-sky-blue"> | ||
공고 작성하기 | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PostWriteIntroPage; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.