@@ -113,12 +113,10 @@ const Profile = () => {
113
113
}
114
114
} ,
115
115
title : lock . name ,
116
- pessimistic : true
116
+ // pessimistic: true
117
117
}
118
118
119
- //TODO change to domain
120
- const uri = 'https://app.unlock-protocol.com/checkout?redirectUri=' + 'https://raindrop-gold.vercel.app/' + location . pathname + '&paywallConfig=' + encodeURIComponent ( JSON . stringify ( paywallConfig ) ) ;
121
- window . location . href = uri ;
119
+ window . unlockProtocol && window . unlockProtocol . loadCheckoutModal ( paywallConfig )
122
120
}
123
121
124
122
const checkVerification = async ( ) => {
@@ -249,9 +247,9 @@ const Profile = () => {
249
247
borderBottom = '1px solid'
250
248
borderColor = 'brand.500'
251
249
>
252
- < Flex mt = '15px' flexDirection = 'column' alignItems = 'center' position = 'absolute' left = '30px' >
250
+ < Flex zIndex = { 2 } mt = '15px' flexDirection = 'column' alignItems = 'center' position = 'absolute' left = '30px' top = '60px '>
253
251
< Text borderRadius = '7px' py = '4px' px = '8px' border = '1px solid' borderColor = 'brand.500' > { lock ? '$' + ethers . utils . formatUnits ( lock . price , DECIMALS [ lock . chain ] ) : 'N/A' } </ Text >
254
- < Text mt = '5px ' color = '#ADADAD' > Per Month</ Text >
252
+ < Text mt = '2px' fontSize = 'small ' color = '#ADADAD' > Per Month</ Text >
255
253
</ Flex >
256
254
257
255
{ /*Center profile*/ }
@@ -268,17 +266,17 @@ const Profile = () => {
268
266
</ Tooltip >
269
267
}
270
268
{ lock && < Text > Creator</ Text > }
271
- < Text w = '100 %' align = 'center' pb = '20px' > { user && user . details . profile && user . details . profile . description || "No description found" } </ Text >
269
+ < Text w = '90 %' align = 'center' pb = '20px' > { user && user . details . profile && user . details . profile . description || "No description found" } </ Text >
272
270
</ Flex >
273
271
274
272
{ myProfile ?
275
- < Flex mt = '15px' flexDirection = 'column' alignItems = 'center' position = 'absolute' right = '30px' >
273
+ < Flex zIndex = { 2 } mt = '15px' flexDirection = 'column' alignItems = 'center' position = 'absolute' right = '30px' top = '60px '>
276
274
< Text borderRadius = '7px' py = '4px' px = '8px' border = '1px solid' borderColor = 'brand.500' fontWeight = 'semibold' > $N/A</ Text >
277
- < Text mt = '5px' color = '#ADADAD' > Earned USDC</ Text >
275
+ < Text mt = '5px' fontSize = 'small' color = '#ADADAD' > Earned USDC</ Text >
278
276
</ Flex >
279
277
:
280
278
lock && ( ! balance ?. gt ( 0 ) ) &&
281
- < Flex mt = '15px' flexDirection = 'column' alignItems = 'center' position = 'absolute' right = '30px' >
279
+ < Flex zIndex = { 2 } mt = '15px' flexDirection = 'column' alignItems = 'center' position = 'absolute' right = '30px' top = '60px '>
282
280
< Button colorScheme = 'brand' borderRadius = '70px' onClick = { handleSubscribe } > Subscribe</ Button >
283
281
< Text mt = '2px' fontSize = 'x-small' color = '#ADADAD' > On { CHAIN_NAMES [ lock . chain ] } </ Text >
284
282
</ Flex >
0 commit comments