Explorar o código

Move links out of Suspense

Andrew Swistak %!s(int64=6) %!d(string=hai) anos
pai
achega
699b775520
Modificáronse 1 ficheiros con 6 adicións e 7 borrados
  1. 6 7
      app/javascript/packs/frontend/app.tsx

+ 6 - 7
app/javascript/packs/frontend/app.tsx

@@ -24,13 +24,12 @@ function App(): React.ReactElement {
             <Route component={NotFound} />
           </Switch>
 
-          <p>
-            <Link to='/pokemon'>Show me the pokemon!</Link>
-          </p>
-          <p>
-            <Link to='/relay'>Take me to relay</Link>
-          </p>
-        </Suspense>
+        <p>
+          <Link to='/pokemon'>Show me the pokemon!</Link>
+        </p>
+        <p>
+          <Link to='/relay'>Take me to relay</Link>
+        </p>
       </ApplicationLayout>
     </BrowserRouter>
   );