mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-07 19:36:02 +00:00
change: use ternary instead of short circuit
This commit is contained in:
parent
efcb12f95a
commit
92ef687ddc
|
@ -40,7 +40,7 @@ function App() {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* other */}
|
{/* other */}
|
||||||
{process.env.NODE_ENV === "development" && (
|
{process.env.NODE_ENV === "development" ? (
|
||||||
<>
|
<>
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
|
@ -78,7 +78,7 @@ function App() {
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
) : null}
|
||||||
<Route path="*" component={NotFoundPage} />
|
<Route path="*" component={NotFoundPage} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in a new issue