From 353cb61006c26d46a41aaca7fd1c0448dab304e2 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Tue, 29 Mar 2022 16:19:21 +1100 Subject: [PATCH] (Edit) Chap05 -> Declaring routes -> Creating a component containing routes: put Header component back to App --- QandA/frontend/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/QandA/frontend/src/App.tsx b/QandA/frontend/src/App.tsx index 6f19130..e7ae2c6 100644 --- a/QandA/frontend/src/App.tsx +++ b/QandA/frontend/src/App.tsx @@ -4,6 +4,7 @@ import { css } from '@emotion/react'; import React from 'react'; import { BrowserRouter, Routes, Route } from 'react-router-dom'; +import { Header } from './Header'; import { HomePage } from './HomePage'; import { fontFamily, fontSize, gray2 } from './Styles'; import { AskPage } from './AskPage'; @@ -14,6 +15,7 @@ import { NotFoundPage } from './NotFoundPage'; function App() { return ( +