Skip to content

Bridge UI : Send token form should support deeplinking all URL params for a better UX #290

@dewanshparashar

Description

@dewanshparashar

Objective

For a seamless user experience, coming to https://across.to/ from other apps, most of the form data should be prefilled from the URL itself. https://across.to/?from=${from}&to=${to}&asset=${tokenSymbol}&amount=${amount}

Reproduce

URL: https://across.to/?from=ethereum&to=arbitrum&asset=eth&amount=100
Most of the values in the URL still render an empty form - making the user fill all the info again.

Code

In the code: frontend-v2/blob/master/src/hooks/uses Adform.tsx, we are extracting params.asset and params.amount from the URL using useQueryParams. However, these values are not being set automatically in the form during any point in the render cycle.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions