Skip to content

Commit f8c4fe3

Browse files
authored
Improve valora deeplinking on iOS (#72)
- Improve valora deeplinking on iOS - Update axlUSDC logo - Allow wallet images from walletconnect.com - Fix z-index values for header dropdown
1 parent 8ea2a35 commit f8c4fe3

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

next.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const securityHeaders = [
2424
key: 'Content-Security-Policy',
2525
value: `default-src 'self'; script-src 'self'${
2626
isDev ? " 'unsafe-eval'" : ''
27-
}; connect-src 'self' https://*.celo.org https://*.celo-testnet.org https://*.walletconnect.com wss://walletconnect.celo.org wss://*.walletconnect.com wss://*.walletconnect.org https://raw.githubusercontent.com; img-src 'self' data: https://raw.githubusercontent.com; style-src 'self' 'unsafe-inline'; font-src 'self' data:; base-uri 'self'; form-action 'self'; frame-src 'self' https://*.walletconnect.com`,
27+
}; connect-src 'self' https://*.celo.org https://*.celo-testnet.org https://*.walletconnect.com wss://walletconnect.celo.org wss://*.walletconnect.com wss://*.walletconnect.org https://raw.githubusercontent.com; img-src 'self' data: https://raw.githubusercontent.com https://*.walletconnect.com; style-src 'self' 'unsafe-inline'; font-src 'self' data:; base-uri 'self'; form-action 'self'; frame-src 'self' https://*.walletconnect.com`,
2828
},
2929
]
3030

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mento-protocol/mento-web",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "A simple DApp for Celo Mento exchanges",
55
"keywords": [
66
"Celo",

src/components/input/Select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function Select({ value, optionValues, onChange, button, option, buttonLa
2323
leaveFrom="opacity-100"
2424
leaveTo="opacity-0"
2525
>
26-
<Listbox.Options className="absolute z-40 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
26+
<Listbox.Options className="absolute z-20 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
2727
{optionValues.map((optionValue) => (
2828
<Listbox.Option key={optionValue} value={optionValue}>
2929
{({ selected }) => option(optionValue, selected)}

src/components/nav/ConnectButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function ConnectButton() {
3636
}
3737

3838
return (
39-
<div className="flex justify-end mb-1 relative opacity-90">
39+
<div className="relative flex justify-end mb-1 opacity-90">
4040
{address && isConnected ? (
4141
<DropdownModal
4242
buttonContent={

src/components/nav/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { isStale } from 'src/utils/time'
1313

1414
export function Footer() {
1515
return (
16-
<footer className="w-screen py-4 px-7">
16+
<footer className="relative z-10 w-screen py-4 px-7">
1717
<div className="flex justify-between items-center">
1818
<div className="flex items-center opacity-90">
1919
<FooterIconLink to={links.twitter} imgSrc={Twitter} alt="Twitter" />

src/components/nav/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Logo from 'src/images/logos/mento-logo-black.svg'
77

88
export function Header({ pathName }: { pathName: string }) {
99
return (
10-
<header className="w-screen pt-4 pb-5 px-3 sm:pl-5 sm:pr-6">
10+
<header className="relative z-10 w-screen pt-4 pb-5 px-3 sm:pl-5 sm:pr-6">
1111
<div className="flex items-center justify-between">
1212
<Link href="/" className="flex items-center sm:hidden">
1313
<Image src={Glyph} alt="" quality={100} width={40} />

src/config/celoWallets.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const Valora = ({
4848
return isAndroid()
4949
? uri
5050
: // ideally this would use the WalletConnect registry, but this will do for now
51-
`https://valoraapp.com/wc?uri=${encodeURIComponent(uri)}`
51+
`celo://wallet/wc?uri=${encodeURIComponent(uri)}`
5252
},
5353
},
5454
qrCode: {

src/images/tokens/USDC.svg

+1-1
Loading

src/layout/AppLayout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function AppLayout({ pathName, children }: PropsWithChildren<Props>) {
1616
<div className="flex flex-col h-full min-h-screen w-full min-w-screen bg-gradient-linear">
1717
<InfoBanner />
1818
<Header pathName={pathName} />
19-
<main className="grow flex items-center justify-center">{children}</main>
19+
<main className="relative z-0 grow flex items-center justify-center">{children}</main>
2020
<Footer />
2121
</div>
2222
<PollingWorker />

src/layout/Dropdown.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function DropdownMenu({
3232
leaveTo="transform opacity-0 scale-95"
3333
>
3434
<Menu.Items
35-
className={`z-50 absolute -right-1.5 mt-3 origin-top-right rounded-md bg-white shadow-md drop-shadow-md ring-1 ring-black ring-opacity-5 focus:outline-none ${menuClasses}`}
35+
className={`z-40 absolute -right-1.5 mt-3 origin-top-right rounded-md bg-white shadow-md drop-shadow-md ring-1 ring-black ring-opacity-5 focus:outline-none ${menuClasses}`}
3636
>
3737
{menuItems.map((mi, i) => (
3838
<Menu.Item key={`menu-item-${i}`}>{mi}</Menu.Item>
@@ -74,7 +74,7 @@ export function DropdownModal({
7474
leaveTo="transform opacity-0 scale-95"
7575
>
7676
<Popover.Panel
77-
className={`z-50 absolute mt-2 origin-top-right rounded-md bg-white shadow-sm drop-shadow-md ring-1 ring-black ring-opacity-5 focus:outline-none ${modalClasses}`}
77+
className={`z-40 absolute mt-2 origin-top-right rounded-md bg-white shadow-sm drop-shadow-md ring-1 ring-black ring-opacity-5 focus:outline-none ${modalClasses}`}
7878
>
7979
{({ close }) => modalContent(close)}
8080
</Popover.Panel>

src/layout/Modal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function Modal({
1313
}: PropsWithChildren<{ isOpen: boolean; title: string; close: () => void; width?: string }>) {
1414
return (
1515
<Transition appear show={isOpen} as={Fragment}>
16-
<Dialog as="div" className="relative z-30" onClose={close}>
16+
<Dialog as="div" className="relative z-50" onClose={close}>
1717
<Transition.Child
1818
as={Fragment}
1919
enter="ease-out duration-300"

0 commit comments

Comments
 (0)