Skip to content

Commit aa25946

Browse files
authored
Changed wording on automatic and manual bridge routes (#1383)
Co-authored-by: Kevin Peters <kevin@wormholelabs.xyz>
1 parent c23320f commit aa25946

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

wormhole-connect/src/config/routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ export const RoutesConfig: {
1818
} = {
1919
[Route.Bridge]: {
2020
route: Route.Bridge,
21-
name: 'Bridge',
21+
name: 'Manual Bridge',
2222
providedBy: 'Wormhole',
2323
link: 'https://wormhole.com/',
2424
icon: WormholeIcon,
2525
pendingMessage: 'Waiting for Wormhole network consensus . . .',
2626
},
2727
[Route.Relay]: {
2828
route: Route.Relay,
29-
name: 'Automatic Deposit',
29+
name: 'Automatic Bridge',
3030
providedBy: 'xLabs',
3131
link: 'https://xlabs.xyz',
3232
icon: XLabsIcon,

wormhole-connect/src/views/Bridge/RouteOptions.tsx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@ const useStyles = makeStyles()((theme: any) => ({
4444
},
4545
},
4646
route: {
47-
display: 'grid',
48-
gridTemplateColumns: '1fr 1fr',
49-
gridTemplateRows: '1fr',
50-
gridTemplateAreas: `"path fees"`,
47+
[theme.breakpoints.up('sm')]: {
48+
display: 'grid',
49+
gridTemplateColumns: '1fr 1fr',
50+
gridTemplateRows: '1fr',
51+
gridTemplateAreas: `"path fees"`,
52+
},
53+
[theme.breakpoints.down('sm')]: {
54+
display: 'flex',
55+
flexDirection: 'column',
56+
},
5157
width: '100%',
5258
maxWidth: '100%',
5359
fontSize: '14px',
@@ -63,11 +69,18 @@ const useStyles = makeStyles()((theme: any) => ({
6369
},
6470
routeTitle: {
6571
display: 'flex',
72+
[theme.breakpoints.down('sm')]: {
73+
flexDirection: 'column',
74+
},
75+
[theme.breakpoints.up('sm')]: {
76+
flexDirection: 'row',
77+
},
6678
alignItems: 'center',
6779
gap: '8px',
6880
fontSize: '14px',
6981
fontWeight: '600',
7082
marginBottom: '8px',
83+
whiteSpace: 'nowrap',
7184
},
7285
routePath: {
7386
display: 'flex',
@@ -210,14 +223,14 @@ function RouteOption(props: { route: RouteData; disabled: boolean }) {
210223
{/* TODO: isAutomatic to route and use transfer parameters to decide */}
211224
{isAutomatic ? (
212225
<Chip
213-
label="One transaction"
226+
label="Receive tokens automatically"
214227
color="success"
215228
variant="outlined"
216229
size="small"
217230
/>
218231
) : (
219232
<Chip
220-
label="Two transactions"
233+
label="Approve a txn from your destination chain wallet"
221234
color="warning"
222235
variant="outlined"
223236
size="small"

0 commit comments

Comments
 (0)