@@ -3,6 +3,7 @@ import { styled } from "@mui/material/styles";
3
3
import Image from "next/image" ;
4
4
import React , { useState } from "react" ;
5
5
6
+ import transientOptions from "../utils/transientOptions" ;
6
7
import Faq from "./Faq" ;
7
8
import Features from "./Features" ;
8
9
import Sponsors from "./Sponsors" ;
@@ -40,14 +41,14 @@ const Landing = () => {
40
41
< StyledImage
41
42
src = "/assets/landing_page/hero_panel.svg"
42
43
alt = "hero panel"
43
- isalternate
44
+ $ isalternate
44
45
width = "1249"
45
46
height = "1067"
46
47
/>
47
48
< StyledImage
48
49
src = { "/assets/landing_page/hero_panel_mobile.svg" }
49
50
alt = "hero panel"
50
- isalternate = { false }
51
+ $ isalternate= { false }
51
52
width = "562"
52
53
height = "547"
53
54
/>
@@ -69,19 +70,20 @@ const LandingScreenContainer = styled(Stack)(({ theme }) => ({
69
70
} ) ) ;
70
71
71
72
interface StyledImageProps {
72
- isalternate : boolean ;
73
+ $ isalternate : boolean ;
73
74
}
74
75
75
- const StyledImage = styled ( Image ) < StyledImageProps > (
76
- ( { theme, isalternate } ) => ( {
77
- height : "100%" ,
78
- width : "100%" ,
79
- display : isalternate ? "block" : "none" ,
80
- [ theme . breakpoints . down ( "md" ) ] : {
81
- display : isalternate ? "none" : "block" ,
82
- } ,
83
- } )
84
- ) ;
76
+ const StyledImage = styled (
77
+ Image ,
78
+ transientOptions
79
+ ) < StyledImageProps > ( ( { theme, $isalternate } ) => ( {
80
+ height : "100%" ,
81
+ width : "100%" ,
82
+ display : $isalternate ? "block" : "none" ,
83
+ [ theme . breakpoints . down ( "md" ) ] : {
84
+ display : $isalternate ? "none" : "block" ,
85
+ } ,
86
+ } ) ) ;
85
87
86
88
const HeroPanelContainer = styled ( Stack ) ( ( { theme } ) => ( {
87
89
height : "100%" ,
0 commit comments