Skip to content

Commit

Permalink
Computer-Progress#48 Marked props isHome as temporary.
Browse files Browse the repository at this point in the history
  • Loading branch information
fellipe-araujo committed Sep 22, 2021
1 parent d9b88b3 commit 98008a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function Header({ isHome }) {
}

return (
<StyledAppBar isHome={isHome && !isMobileSM}>
<StyledAppBar $isHome={isHome && !isMobileSM}>
<StyledContainer>
<Toolbar disableGutters>
<StyledToolbarBox>
Expand Down
14 changes: 7 additions & 7 deletions components/Header/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from "styled-components";
import styled, { css } from "styled-components";
import {
AppBar as MuiAppBar,
Container as MuiContainer,
Expand All @@ -22,12 +22,12 @@ export const StyledAppBar = styled(MuiAppBar).attrs({
position: "static",
elevation: 0,
})`
${({ isHome }) =>
isHome
? "background-color: transparent !important;"
: `
background-color: #4e33ff !important;
background: linear-gradient(268.88deg, rgba(255, 255, 255, 0.1) -7.38%, #9E1FFF 104.79%), #4e33ff;
${({ $isHome }) =>
$isHome
? css`background-color: transparent !important;`
: css`
background-color: #4e33ff !important;
background: linear-gradient(268.88deg, rgba(255, 255, 255, 0.1) -7.38%, #9E1FFF 104.79%), #4e33ff;
`}
`;

Expand Down

0 comments on commit 98008a4

Please sign in to comment.