Skip to content

Commit

Permalink
add xAssets link (#626)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Sebastian Scatularo <[email protected]>
  • Loading branch information
sebastianscatularo and Sebastian Scatularo authored Dec 22, 2023
1 parent d7c6b18 commit 57185cb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
11 changes: 10 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import { HelpOutline } from "@material-ui/icons";
import { useCallback } from "react";
import { useHistory, useLocation } from "react-router";
import { Redirect, Route, Switch } from "react-router-dom";
import { Redirect, Route, Switch, Link as RouterLink } from "react-router-dom";
import Attest from "./components/Attest";
import Footer from "./components/Footer";
import HeaderText from "./components/HeaderText";
Expand Down Expand Up @@ -255,6 +255,15 @@ function App() {
>
FAQ
</Link>
<Link
component={RouterLink}
rel="noopener noreferrer"
color="inherit"
className={classes.link}
to="register"
>
Register Token
</Link>
<Box>
<Link
href="https://wormholescan.io"
Expand Down
33 changes: 30 additions & 3 deletions src/components/Attest/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import {
Container,
Link,
Step,
StepButton,
StepContent,
Stepper,
Typography,
makeStyles,
} from "@material-ui/core";
import { Alert } from "@material-ui/lab";
import { useEffect } from "react";
Expand All @@ -26,7 +29,14 @@ import SourcePreview from "./SourcePreview";
import Target from "./Target";
import TargetPreview from "./TargetPreview";

const useStyles = makeStyles((theme) => ({
alert: {
marginBottom: theme.spacing(2),
},
}));

function Attest() {
const classes = useStyles();
const dispatch = useDispatch();
const activeStep = useSelector(selectAttestActiveStep);
const isSending = useSelector(selectAttestIsSending);
Expand All @@ -46,9 +56,26 @@ function Attest() {
return (
<Container maxWidth="md">
<HeaderText white>Token Registration</HeaderText>
<Alert severity="info">
This form allows you to register a token on a new foreign chain. Tokens
must be registered before they can be transferred.
<Alert severity="info" className={classes.alert}>
<Typography variant="body1">
This form allows you to register a token on a new foreign chain.
Tokens must be registered before they can be transferred.
</Typography>
<Typography variant="body2">
Check our tutorial{" "}
<Link
target="_blank"
href="https://portalbridge.com/docs/tutorials/how-to-do-token-register/"
>
here
</Link>
</Typography>
</Alert>
<Alert severity="warning" className={classes.alert}>
<Typography variant="body1">
Using this feature may have some risks. Ensure a full understanding
before proceeding.
</Typography>
</Alert>
<Stepper activeStep={activeStep} orientation="vertical">
<Step
Expand Down

0 comments on commit 57185cb

Please sign in to comment.