aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-09-03 23:13:42 -0700
committerjackyzha0 <[email protected]>2020-09-03 23:13:42 -0700
commit7d3c054aae8e0003c877f9383fd7398dd6cbab1c (patch)
tree8f00a0c30b64a8be00dd0ad98c18b8efe279b52f /frontend/src/components
parentfix finddomnode deprecated in dropdown (diff)
downloadctrl-v-7d3c054aae8e0003c877f9383fd7398dd6cbab1c.tar.xz
ctrl-v-7d3c054aae8e0003c877f9383fd7398dd6cbab1c.zip
fix React does not recognize the warning by adding extra react fragment
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/App.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js
index 0a5fb8b..1579ffd 100644
--- a/frontend/src/components/App.js
+++ b/frontend/src/components/App.js
@@ -42,33 +42,33 @@ const App = () => {
return (
<Router>
<Switch>
- <Route path="/raw/:hash"
- children={<GetRawWithParam />}
- />
- <div className="lt-content-column">
- <SpacedTitle>
- <nav>
- <h1 className="mainLogo">
- <span role="img" aria-label="clipboard">📋&nbsp;</span>
- <Link to="/">ctrl-v</Link>
- </h1>
- <Desc />
- </nav>
- </SpacedTitle>
+ <>
+ <Route path="/raw/:hash"
+ children={<GetRawWithParam />}
+ />
+ <div className="lt-content-column">
+ <SpacedTitle>
+ <nav>
+ <h1 className="mainLogo">
+ <span role="img" aria-label="clipboard">📋&nbsp;</span>
+ <Link to="/">ctrl-v</Link>
+ </h1>
+ <Desc />
+ </nav>
+ </SpacedTitle>
- <main id="appElement">
- <Switch>
+ <main id="appElement">
<Route path="/:hash"
children={<GetPasteWithParam />}
/>
<Route path="/">
<NewPaste />
</Route>
- </Switch>
- </main>
+ </main>
- <Footer />
- </div>
+ <Footer />
+ </div>
+ </>
</Switch>
</Router>
);