refact(header): use key instead of noop prop to force rerender

This commit is contained in:
Jean-Philippe Sirois
2019-08-23 17:13:06 -04:00
parent eaf2e6edf3
commit 506f78735a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export function Header({ isHome }: IHeaderProps) {
</SC.FadedBottomWave>
<SC.StyledParticles
noop={noop}
key={noop}
params={{
particles: {
number: { value: 5, density: { enable: true, value_area: 500 } },
+1 -1
View File
@@ -76,7 +76,7 @@ export const FadedBottomWave = styled.div`
}
`
export const StyledParticles = styled(Particles)<{ noop: number }>`
export const StyledParticles = styled(Particles)`
mask-image: -webkit-linear-gradient(
top,
rgba(0, 0, 0, 0) 5%,