Commit 98a89331 authored by KangMin An's avatar KangMin An
Browse files

Merge branch 'who' into premaster

parents 3a341f06 ed505954
...@@ -4,7 +4,7 @@ import './App.css'; ...@@ -4,7 +4,7 @@ import './App.css';
import Home from './pages/Home'; import Home from './pages/Home';
import SignupPage from './pages/SignupPage'; import SignupPage from './pages/SignupPage';
import LoginPage from './pages/LoginPage'; import LoginPage from './pages/LoginPage';
import LocalCodePage from './pages/LocalCodePage'; import EditPage from './pages/EditPage';
import PrivateRoute from './utils/PrivateRoutes'; import PrivateRoute from './utils/PrivateRoutes';
import PageNotFound from './components/PageNotFound'; import PageNotFound from './components/PageNotFound';
import Footer from './components/Footer'; import Footer from './components/Footer';
...@@ -18,14 +18,14 @@ function App() { ...@@ -18,14 +18,14 @@ function App() {
<Route exact path='/' component={Home} /> <Route exact path='/' component={Home} />
<Route path='/signup' component={SignupPage} /> <Route path='/signup' component={SignupPage} />
<Route path='/login' component={LoginPage} /> <Route path='/login' component={LoginPage} />
<Route path='/loc' component={LocalCodePage} />
<PrivateRoute path='/local_code'> <PrivateRoute path='/edit'>
<LocalCodePage /> <EditPage />
</PrivateRoute> </PrivateRoute>
<Route component={PageNotFound} /> <Route component={PageNotFound} />
</Switch> </Switch>
<Footer /> <Footer />
</Router> </Router>
......
...@@ -78,7 +78,7 @@ function UserInfo() { ...@@ -78,7 +78,7 @@ function UserInfo() {
</Card.Subtitle> </Card.Subtitle>
{nickname && {nickname &&
<Button variant='light' className='m-auto d-flex' style={btnstyled2}> <Button variant='light' className='m-auto d-flex' style={btnstyled2}>
<Link to='/local_code' className='w-100' style={{ textDecoration: 'none', color: 'rgb(110, 189, 142)' }}> <Link to='/edit' className='w-100' style={{ textDecoration: 'none', color: 'rgb(110, 189, 142)' }}>
변경 변경
</Link> </Link>
</Button> </Button>
......
...@@ -5,7 +5,7 @@ import '../App.css' ...@@ -5,7 +5,7 @@ import '../App.css'
import LocCodeChange from '../components/LocCodeChange'; import LocCodeChange from '../components/LocCodeChange';
import NicknameChange from '../components/NicknameChange'; import NicknameChange from '../components/NicknameChange';
function SignupPage() { function EditPage() {
const constyled = { const constyled = {
display: 'flex', display: 'flex',
justifyContent: 'space-evenly', justifyContent: 'space-evenly',
...@@ -49,4 +49,4 @@ function SignupPage() { ...@@ -49,4 +49,4 @@ function SignupPage() {
); );
} }
export default SignupPage; export default EditPage;
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ export const routes = { ...@@ -2,7 +2,7 @@ export const routes = {
home: '/', home: '/',
signup: '/signup', signup: '/signup',
login: 'login', login: 'login',
localcode: '/local_code', edit: '/edit',
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment