Skip to content

Commit

Permalink
Merge pull request CEOS-Developers#4 from Team-MailedIt/corinthionia
Browse files Browse the repository at this point in the history
🔥 chore: Modify route
  • Loading branch information
itsnowkim authored Nov 23, 2021
2 parents c1da48f + f29baa3 commit 66618ab
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 35 deletions.
42 changes: 21 additions & 21 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { Route, Routes } from 'react-router';

import SignIn from '../src/pages/SignIn';
import SignUp from '../src/pages/SignUp';
import Vote from '../src/pages/Vote';
import Result from '../src/pages/Result';

function App() {
return (
<>
<Routes>
<Route path="/" element={<SignIn />} />
<Route path="/signup" element={<SignUp />} />
<Route path="/vote/:part" element={<Vote />} />
<Route path="/result/:part" element={<Result />} />
</Routes>
</>
);
}

export default App;
import { Route, Routes } from 'react-router';

import SignIn from '../src/pages/SignIn';
import SignUp from '../src/pages/SignUp';
import Vote from '../src/pages/Vote';
import Result from '../src/pages/Result';

function App() {
return (
<>
<Routes>
<Route path="/" element={<SignIn />} />
<Route path="/signup" element={<SignUp />} />
<Route path="/vote/:part" element={<Vote />} />
<Route path="/result" element={<Result />} />
</Routes>
</>
);
}

export default App;
26 changes: 12 additions & 14 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';

import App from './App';

ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
);
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';

import App from './App';

ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root')
);

0 comments on commit 66618ab

Please sign in to comment.