mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
refact(header): use key instead of noop prop to force rerender
This commit is contained in:
@@ -35,7 +35,7 @@ export function Header({ isHome }: IHeaderProps) {
|
|||||||
</SC.FadedBottomWave>
|
</SC.FadedBottomWave>
|
||||||
|
|
||||||
<SC.StyledParticles
|
<SC.StyledParticles
|
||||||
noop={noop}
|
key={noop}
|
||||||
params={{
|
params={{
|
||||||
particles: {
|
particles: {
|
||||||
number: { value: 5, density: { enable: true, value_area: 500 } },
|
number: { value: 5, density: { enable: true, value_area: 500 } },
|
||||||
|
|||||||
@@ -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(
|
mask-image: -webkit-linear-gradient(
|
||||||
top,
|
top,
|
||||||
rgba(0, 0, 0, 0) 5%,
|
rgba(0, 0, 0, 0) 5%,
|
||||||
|
|||||||
Reference in New Issue
Block a user