-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add more onramp services #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fionnachan
wants to merge
22
commits into
master
Choose a base branch
from
onramp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
dd44f0a
move moonpay into its own file
fionnachan 0657257
add buy panel home page
fionnachan 4c5f441
services list
fionnachan 080c2c6
add all onramp tiles
fionnachan 71d52e4
fix import issue
fionnachan 60bda28
wip
fionnachan 2a3c6ed
fix merge conflicts
fionnachan aa7ef36
make moonpay panel work
fionnachan 8c039b8
add details screen
fionnachan e000bdb
widget buy details page
fionnachan b793454
add search query params to back button link
fionnachan 8532832
low balance warning
fionnachan d23238c
make widget onramp panels work
fionnachan 0f5a669
cleanup
fionnachan cd9e6dc
review comments
fionnachan 5c03052
add buy now button
fionnachan e6ff41a
clean up
fionnachan dd372cf
fix format
fionnachan 7da2a5d
onramp update
fionnachan 7185d48
onramp widget colours
fionnachan 5d6e2fb
onramp widget colours
fionnachan b171a94
widget styles
fionnachan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/app/src/app/(embed)/bridge/embed/buy/[slug]/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Slug } from 'packages/app/src/utils/bridgePageUtils'; | ||
|
||
import { PathnameEnum } from '@/bridge/constants'; | ||
|
||
import EmbedPageWrapper from '../../EmbedPageWrapper'; | ||
|
||
type Props = { | ||
searchParams: { [key: string]: string | string[] | undefined }; | ||
params: { slug: Slug }; | ||
}; | ||
|
||
export default async function EmbeddedBuyOnrampServicePage({ searchParams, params }: Props) { | ||
return ( | ||
<EmbedPageWrapper | ||
searchParams={searchParams} | ||
redirectPath={`${PathnameEnum.EMBED_BUY}/${params.slug}`} | ||
/> | ||
); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/app/src/app/(with-sidebar)/bridge/buy/[slug]/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { Metadata } from 'next'; | ||
import { Slug } from 'packages/app/src/utils/bridgePageUtils'; | ||
|
||
import { PathnameEnum } from '@/bridge/constants'; | ||
|
||
import BridgePageWrapper from '../../BridgePageWrapper'; | ||
|
||
type Props = { | ||
searchParams: { [key: string]: string | string[] | undefined }; | ||
params: { slug: Slug }; | ||
}; | ||
|
||
export const metadata: Metadata = { | ||
title: 'On-Ramp to Arbitrum', | ||
description: | ||
"On-ramp directly to Arbitrum with one of several third party providers. Built to scale Ethereum, Arbitrum brings you 10x lower costs while inheriting Ethereum's security model. Arbitrum is a Layer 2 Optimistic Rollup.", | ||
}; | ||
|
||
export default async function BridgeBuyOnrampServicePage({ searchParams, params }: Props) { | ||
return ( | ||
<BridgePageWrapper | ||
searchParams={searchParams} | ||
redirectPath={`${PathnameEnum.BUY}/${params.slug}`} | ||
/> | ||
); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/arb-token-bridge-ui/src/components/BuyPanel/BackButton.tsx
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not needed for now because parent are already using |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
'use client'; | ||
|
||
import { ChevronLeftIcon } from '@heroicons/react/24/outline'; | ||
import Link from 'next/link'; | ||
import { useSearchParams } from 'next/navigation'; | ||
|
||
import { PathnameEnum } from '@/bridge/constants'; | ||
import { useMode } from '@/bridge/hooks/useMode'; | ||
|
||
import { Button } from '../common/Button'; | ||
|
||
export function BackButton() { | ||
const { embedMode } = useMode(); | ||
const searchParams = useSearchParams(); | ||
|
||
return ( | ||
<Link | ||
href={{ | ||
pathname: embedMode ? PathnameEnum.EMBED_BUY : PathnameEnum.BUY, | ||
query: searchParams.toString(), | ||
}} | ||
className="flex flex-row justify-content items-center absolute top-4 left-4 gap-2 hover:opacity-80" | ||
> | ||
<Button | ||
variant="secondary" | ||
className="rounded-full w-6 h-6 flex items-center justify-center bg-white/20 backdrop-blur border-none hover:opacity-100 hover:bg-white/20 hover:text-white/70" | ||
> | ||
<ChevronLeftIcon className="h-3 w-3" /> | ||
</Button> | ||
<span>Back</span> | ||
</Link> | ||
); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: once we migrate to turbopack, this can reimport
SearchParamsProps
type (it need to be awaited)