@@ -100,102 +100,100 @@ function Footer() {
100100 < Stack direction = { { base : "column" , md : "row" } } >
101101 < Center > Found the project helpful?</ Center >
102102 < HStack >
103- { process . env . NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" ? (
104- < >
105- < Text > Support it on</ Text >
106- < Link
107- href = { process . env . NEXT_PUBLIC_GITCOIN_GRANTS_LINK }
108- isExternal
109- >
110- < HStack fontWeight = "bold" textDecor = "underline" >
111- < Text > Gitcoin Grants</ Text >
112- < ExternalLinkIcon />
113- </ HStack >
114- </ Link >
115- </ >
116- ) : (
117- < >
118- < Button
119- size = { "sm" }
120- fontWeight = { "bold" }
121- onClick = { ( ) => {
122- openSupportModal ( ) ;
123- } }
124- bg = { "blackAlpha.500" }
125- >
126- Support!
127- </ Button >
128- < Modal
129- isOpen = { isSupportModalOpen }
130- onClose = { closeSupportModal }
131- isCentered
132- >
133- < ModalOverlay
134- bg = "none"
135- backdropFilter = "auto"
136- backdropBlur = "3px"
137- />
138- < ModalContent bg = { "brand.lightBlack" } >
139- < ModalHeader > Support</ ModalHeader >
140- < ModalCloseButton />
141- < ModalBody pb = { 6 } >
142- < Container >
143- < Center >
144- < CustomConnectButton />
145- </ Center >
146- < Text mt = { 4 } size = "md" >
147- Select amount to donate:
148- </ Text >
149- < SimpleGrid mt = { 3 } columns = { 3 } >
150- { [ "0.001" , "0.005" , "0.01" ] . map ( ( value , i ) => (
151- < GridItem key = { i } >
152- < Center >
153- < Button
154- onClick = { ( ) => handleDonate ( value ) }
155- isDisabled = {
156- ! isConnected || chain ?. unsupported
157- }
158- >
159- { value } Ξ
160- </ Button >
161- </ Center >
162- </ GridItem >
163- ) ) }
164- </ SimpleGrid >
165- < Center mt = { 4 } > or</ Center >
166- < InputGroup mt = { 4 } >
167- < Input
168- type = "number"
169- placeholder = "Custom amount"
170- onChange = { ( e ) => setDonateValue ( e . target . value ) }
171- isDisabled = { ! isConnected || chain ?. unsupported }
172- />
173- < InputRightElement
174- bg = "gray.600"
175- fontWeight = { "bold" }
176- roundedRight = { "lg" }
177- >
178- Ξ
179- </ InputRightElement >
180- </ InputGroup >
181- < Center mt = { 2 } >
182- < Button
183- onClick = { ( ) => {
184- if ( donateValue ) {
185- handleDonate ( donateValue ) ;
186- }
187- } }
188- isDisabled = { ! donateValue || chain ?. unsupported }
189- >
190- Donate
191- </ Button >
192- </ Center >
193- </ Container >
194- </ ModalBody >
195- </ ModalContent >
196- </ Modal >
197- </ >
198- ) }
103+ < Button
104+ size = { "sm" }
105+ fontWeight = { "bold" }
106+ onClick = { ( ) => {
107+ openSupportModal ( ) ;
108+ } }
109+ bg = { "blackAlpha.500" }
110+ >
111+ Support!
112+ </ Button >
113+ < Modal
114+ isOpen = { isSupportModalOpen }
115+ onClose = { closeSupportModal }
116+ isCentered
117+ >
118+ < ModalOverlay
119+ bg = "none"
120+ backdropFilter = "auto"
121+ backdropBlur = "3px"
122+ />
123+ < ModalContent bg = { "brand.lightBlack" } >
124+ < ModalHeader > Support</ ModalHeader >
125+ < ModalCloseButton />
126+ < ModalBody pb = { 6 } >
127+ { process . env . NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE ===
128+ "true" && (
129+ < Center mb = { 6 } py = { 3 } bg = "whiteAlpha.200" rounded = { "lg" } >
130+ < HStack >
131+ < Text > Support on</ Text >
132+ < Link
133+ href = { process . env . NEXT_PUBLIC_GITCOIN_GRANTS_LINK }
134+ isExternal
135+ >
136+ < HStack fontWeight = "bold" textDecor = "underline" >
137+ < Text > Gitcoin Grants</ Text >
138+ < ExternalLinkIcon />
139+ </ HStack >
140+ </ Link >
141+ </ HStack >
142+ </ Center >
143+ ) }
144+ < Container >
145+ < Center >
146+ < CustomConnectButton />
147+ </ Center >
148+ < Text mt = { 4 } size = "md" >
149+ Select amount to donate:
150+ </ Text >
151+ < SimpleGrid mt = { 3 } columns = { 3 } >
152+ { [ "0.001" , "0.005" , "0.01" ] . map ( ( value , i ) => (
153+ < GridItem key = { i } >
154+ < Center >
155+ < Button
156+ onClick = { ( ) => handleDonate ( value ) }
157+ isDisabled = { ! isConnected || chain ?. unsupported }
158+ >
159+ { value } Ξ
160+ </ Button >
161+ </ Center >
162+ </ GridItem >
163+ ) ) }
164+ </ SimpleGrid >
165+ < Center mt = { 4 } > or</ Center >
166+ < InputGroup mt = { 4 } >
167+ < Input
168+ type = "number"
169+ placeholder = "Custom amount"
170+ onChange = { ( e ) => setDonateValue ( e . target . value ) }
171+ isDisabled = { ! isConnected || chain ?. unsupported }
172+ />
173+ < InputRightElement
174+ bg = "gray.600"
175+ fontWeight = { "bold" }
176+ roundedRight = { "lg" }
177+ >
178+ Ξ
179+ </ InputRightElement >
180+ </ InputGroup >
181+ < Center mt = { 2 } >
182+ < Button
183+ onClick = { ( ) => {
184+ if ( donateValue ) {
185+ handleDonate ( donateValue ) ;
186+ }
187+ } }
188+ isDisabled = { ! donateValue || chain ?. unsupported }
189+ >
190+ Donate
191+ </ Button >
192+ </ Center >
193+ </ Container >
194+ </ ModalBody >
195+ </ ModalContent >
196+ </ Modal >
199197 </ HStack >
200198 </ Stack >
201199 </ Alert >
0 commit comments