Skip to content

Commit

Permalink
ssr: fix styled components hyrdation warning
Browse files Browse the repository at this point in the history
it seems to be caused by keyframe animations
  • Loading branch information
giannif committed Dec 11, 2023
1 parent 4e43654 commit 6783a92
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ const SearchButton = ({ onClick }: Props) => {
const throttledFetch = useThrottle(isFetching, 1000)
return (
<Container onClick={() => onClick?.()}>
<GradientBox />
<GradientBox suppressHydrationWarning />
<SearchIcon />
{throttledFetch && (
<Fx>
<Scanner />
<Fx suppressHydrationWarning>
<Scanner suppressHydrationWarning />
</Fx>
)}
</Container>
Expand Down

0 comments on commit 6783a92

Please sign in to comment.