commit c8363449c3d11534b249727874a18fd97b2ea152 parent de81d3bc09d05e58baddea7a0eb792b923626b4c Author: tanhengyeow <E0032242@u.nus.edu> Date: Tue, 9 Jun 2020 01:31:24 +0800 Show footer in all authenticated routes Diffstat:
| M | frontend/src/routes/AuthenticatedRoute.tsx | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/frontend/src/routes/AuthenticatedRoute.tsx b/frontend/src/routes/AuthenticatedRoute.tsx @@ -5,6 +5,8 @@ import { Route } from 'react-router-dom'; import history from '../history'; import { Auth } from '../types'; +import Footer from '../components/footer/Index'; + interface Props { exact?: boolean; isAuthenticated: boolean | null; @@ -32,8 +34,8 @@ const AuthenticatedRoute = ({ </> )} /> - <footer>Footer</footer> </div> + <Footer /> </> ); };