Skip to content

Commit

Permalink
del files
Browse files Browse the repository at this point in the history
  • Loading branch information
Chhpearl committed Jul 12, 2022
1 parent e488209 commit 99f5a3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
9 changes: 0 additions & 9 deletions src/App.test.tsx

This file was deleted.

24 changes: 3 additions & 21 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
import React from 'react';
import './App.css';
import { HomePage } from './pages';
// import { BrowserRouter, Route, Routes } from "react-router-dom"

// function App() {
// return (
// <div className="App">
// <BrowserRouter>
// <Routes>
// <Route path="/" element={<HomePage/>} />
// {/* <Route path="/signIn" component={SignInPage} />
// <Route path="/register" component={RegisterPage} />
// <Route path="/detail/:touristRouteId" component={DetailPage} /> */}
// {/* <Route render={()=>(<h1>404 not found 页面去火星了 ! </h1>)} /> */}
// </Routes>
// </BrowserRouter>
// </div>
// );
// }

import { HomePage, RegisterPage } from './pages';

import { BrowserRouter, Route, Switch } from "react-router-dom"
function App() {
Expand All @@ -27,8 +8,9 @@ function App() {
<BrowserRouter>
<Switch>
<Route exact path="/" component={HomePage} />
{/* <Route path="/signIn" component={SignInPage} />
<Route path="/register" component={RegisterPage} />
{/* <Route path="/signIn" component={SignInPage} />
<Route path="/detail/:touristRouteId" component={DetailPage} /> */}
<Route render={()=>(<h1>404 not found 页面去火星了 ! </h1>)} />
</Switch>
Expand Down
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

0 comments on commit 99f5a3c

Please sign in to comment.