mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +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.StyledParticles
|
||||
noop={noop}
|
||||
key={noop}
|
||||
params={{
|
||||
particles: {
|
||||
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(
|
||||
top,
|
||||
rgba(0, 0, 0, 0) 5%,
|
||||
|
||||
Reference in New Issue
Block a user