Skip to content

Commit e6fcb2d

Browse files
committed
[Refact] SignUp, SignIn 페이지 커스텀 훅, 컴포넌트 중복 분리, 로직개선
1 parent 6509e5d commit e6fcb2d

30 files changed

+671
-552
lines changed

.github/ISSUE_TEMPLATE/-dev-log----------.md

-22
This file was deleted.

.gitmessage.txt

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
# 제목의 첫 글자는 대문자로 작성
2929
# 제목의 끝에 마침표 넣지 않기
3030
# 제목은 명령문으로
31-
# 본문의 각 행은 72글자 내로 제한.
3231
# 어떻게 보다는 무엇과 왜를 설명.
3332
# ------------------
3433
################

client/package-lock.json

+183
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"react-router-dom": "^6.2.1",
1717
"react-scripts": "5.0.0",
1818
"redux": "^4.1.2",
19+
"styled-components": "^5.3.3",
1920
"web-vitals": "^2.1.4"
2021
},
2122
"scripts": {

client/src/App.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import React, { useState, useEffect, useRef } from 'react';
22
import { Routes, Route } from 'react-router-dom';
33
import { withCookies, useCookies } from 'react-cookie';
44
import NavBar from 'components/NavBar';
5-
import Main from 'components/Main';
6-
import Dining from 'components/Dining';
7-
import NotFound from 'components/NotFound';
8-
import SignUp from 'components/SignUp';
9-
import SignIn from 'components/SignIn';
5+
6+
import NotFound from 'pages/NotFound';
7+
108
import Modal from 'components/Modal';
11-
import Share from 'components/Share';
9+
10+
import Main from 'pages/Main';
11+
import Dining from 'pages/Dining';
12+
import Share from 'pages/Share';
13+
import SignUp from 'pages/SignUp';
14+
import SignIn from 'pages/SignIn';
15+
1216
import './App.css';
1317
function App() {
1418
const [modalOff, modalOn] = useState(false);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function InputBox({ props, changeHandler }) {
2+
return (
3+
<>
4+
<input {...props} onChange={changeHandler}></input>
5+
</>
6+
);
7+
}
8+
export default InputBox;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
function SignLogo({ text }) {
2+
return (
3+
<>
4+
<div className='auth-logo'>
5+
<p>이랏샤이</p>
6+
<p>오마카세</p>
7+
</div>
8+
<div className='auth-description'>
9+
<p>{text}</p>
10+
</div>
11+
</>
12+
);
13+
}
14+
15+
export default SignLogo;

0 commit comments

Comments
 (0)