@@ -4,15 +4,15 @@ import Marquee from "react-fast-marquee"
44
55import { Box } from "@mui/material"
66
7- import { isMainnet } from "@/utils"
7+ import { isSepolia } from "@/utils"
88
99const Announcement = ( ) => {
1010 const displayAnnouncement = true
1111 const pathname = usePathname ( )
1212 const isHome = pathname === "/"
1313
1414 const announcementContent = useMemo ( ( ) => {
15- if ( isMainnet && isHome ) {
15+ if ( ! isSepolia && isHome ) {
1616 return (
1717 < >
1818 Join Scroll Open: Build the Future of the Open Economy{ " " }
@@ -23,21 +23,21 @@ const Announcement = () => {
2323 )
2424 }
2525 return null
26- } , [ isMainnet , isHome ] )
26+ } , [ isSepolia , isHome ] )
2727
2828 const rightHref = useMemo ( ( ) => {
29- if ( isMainnet && isHome ) {
29+ if ( ! isSepolia && isHome ) {
3030 return "https://open.scroll.io"
3131 }
3232 return ""
33- } , [ isMainnet , isHome ] )
33+ } , [ isSepolia , isHome ] )
3434
3535 return displayAnnouncement && announcementContent ? (
3636 < a href = { rightHref } rel = "noopener noreferrer" >
3737 < Box
3838 sx = { {
39- backgroundColor : theme => ( isMainnet ? theme . palette . common . white : theme . palette . primary . main ) ,
40- color : theme => ( isMainnet ? theme . palette . text . primary : theme . palette . primary . contrastText ) ,
39+ backgroundColor : theme => ( ! isSepolia ? theme . palette . common . white : theme . palette . primary . main ) ,
40+ color : theme => ( ! isSepolia ? theme . palette . text . primary : theme . palette . primary . contrastText ) ,
4141 fontSize : "1.6rem" ,
4242 lineHeight : {
4343 xs : "2rem" ,
0 commit comments