Skip to content

Commit

Permalink
examples/next: disable animation on image loading to prevent SSR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 23, 2024
1 parent f8b8225 commit af1d38a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/next/src/app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ export const Header = () => {
return (
<Box position="fixed" width="full" padding="5" justifyContent="space-between">
<Box flexDirection="row" alignItems="center" justifyContent="center" gap="3">
<Image style={{ width: '36px' }} src="kit-logo.svg" alt="Sequence kit" />
<Image style={{ width: '36px' }} src="kit-logo.svg" alt="Sequence kit" disableAnimation />
<Image
style={{
width: '24px'
// filter: theme === 'dark' ? 'invert(0)' : 'invert(1)'
}}
src="kit-logo-text.svg"
alt="Sequence Kit Text Logo"
disableAnimation
/>
</Box>
<Box>
Expand Down
5 changes: 3 additions & 2 deletions examples/next/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ export default function Home() {
{!isConnected ? (
<Box flexDirection="column" alignItems="center" justifyContent="center" gap="5" height="vh">
<Box background="white" padding="2" borderRadius="sm">
<Image alt="Next" src="next.svg" height="3" />
<Image alt="Next" src="next.svg" height="3" disableAnimation />
</Box>
<Box flexDirection="row" alignItems="center" justifyContent="center" gap="3">
<Image alt="Sequence Kit Logo" style={{ width: '48px' }} src="kit-logo.svg" />
<Image alt="Sequence Kit Logo" style={{ width: '48px' }} src="kit-logo.svg" disableAnimation />
<Image
alt="Sequence Kit Text Logo"
style={{
width: '32px'
// filter: theme === 'dark' ? 'invert(0)' : 'invert(1)'
}}
src="kit-logo-text.svg"
disableAnimation
/>
</Box>
<Box gap="2" flexDirection="row" alignItems="center">
Expand Down

0 comments on commit af1d38a

Please sign in to comment.