From a3244fc58b3adb5219b0820d0e18fde0ec42a514 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 28 Apr 2021 18:44:32 -0400 Subject: [PATCH] fix: change the nesting of the components to fix problem with the AppBar --- striker-ui/components/Header.tsx | 16 +++------ striker-ui/pages/index.tsx | 56 +++++++++++++++----------------- 2 files changed, 31 insertions(+), 41 deletions(-) diff --git a/striker-ui/components/Header.tsx b/striker-ui/components/Header.tsx index 25134561..eabad80e 100644 --- a/striker-ui/components/Header.tsx +++ b/striker-ui/components/Header.tsx @@ -14,7 +14,7 @@ const useStyles = makeStyles((theme) => }, input: { height: '40px', - width: '500px', + width: '30vw', backgroundColor: theme.palette.secondary.main, borderRadius: '3px', }, @@ -28,20 +28,14 @@ const Header = (): JSX.Element => { const classes = useStyles(); return ( - - + + - + - + {ICONS.map( (icon): JSX.Element => ( ({ @@ -34,35 +33,32 @@ const Home = (): JSX.Element => { return ( <> -
- - {data?.anvils && ( - <> - - - - - - - - - - - - - - - - - )} - +
+ {data?.anvils && ( + + + + + + + + + + + + + + + + + + )} );