Skip to content

Commit c4646d0

Browse files
committed
fix props on infobanner
1 parent 269a970 commit c4646d0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/InfoBanner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
2-
import { Flex, Text } from "@chakra-ui/react"
2+
import { Flex, FlexProps, Text } from "@chakra-ui/react"
33
import Emoji from "./Emoji"
44

5-
export interface IProps {
5+
export interface IProps extends FlexProps {
66
children?: React.ReactNode
77
className?: string
88
emoji?: string

src/pages/get-eth.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ const GetETHPage = ({ data }: PageProps<Queries.GetEthPageQuery>) => {
111111
justifyContent="center"
112112
>
113113
<Img
114-
position="absolute !important"
115114
as={GatsbyImage}
115+
sx={{
116+
position: "absolute !important",
117+
}}
116118
zIndex={-1}
117119
w="full"
118120
maxW={{ base: "100vh", xl: "8xl" }}
@@ -193,12 +195,12 @@ const GetETHPage = ({ data }: PageProps<Queries.GetEthPageQuery>) => {
193195
</Link>
194196
</em>
195197
</p>
196-
<Box as={InfoBanner} emoji=":wave:" shouldCenter={true} mt={8}>
198+
<InfoBanner emoji=":wave:" shouldCenter={true} mt={8}>
197199
<Translation id="page-get-eth-new-to-eth" />{" "}
198200
<Link to="/eth/">
199201
<Translation id="page-get-eth-whats-eth-link" />
200202
</Link>
201-
</Box>
203+
</InfoBanner>
202204
</Content>
203205
</Flex>
204206
<Flex

0 commit comments

Comments
 (0)