bridge_ui: add FAQ link
Change-Id: I124140e56ba32258c4b5e396f531977f9b5eb59b
This commit is contained in:
parent
831e96adb5
commit
363d83f9c6
|
@ -8,7 +8,7 @@ import {
|
||||||
Tooltip,
|
Tooltip,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@material-ui/core";
|
} from "@material-ui/core";
|
||||||
import { GitHub, Publish, Send } from "@material-ui/icons";
|
import { GitHub, Help, Publish, Send } from "@material-ui/icons";
|
||||||
import {
|
import {
|
||||||
Link as RouterLink,
|
Link as RouterLink,
|
||||||
NavLink,
|
NavLink,
|
||||||
|
@ -30,7 +30,6 @@ const useStyles = makeStyles((theme) => ({
|
||||||
borderBottom: `1px solid ${theme.palette.divider}`,
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
||||||
"& > .MuiToolbar-root": {
|
"& > .MuiToolbar-root": {
|
||||||
margin: "auto",
|
margin: "auto",
|
||||||
height: 69,
|
|
||||||
width: "100%",
|
width: "100%",
|
||||||
maxWidth: 1100,
|
maxWidth: 1100,
|
||||||
},
|
},
|
||||||
|
@ -39,15 +38,22 @@ const useStyles = makeStyles((theme) => ({
|
||||||
flex: 1,
|
flex: 1,
|
||||||
width: "100vw",
|
width: "100vw",
|
||||||
},
|
},
|
||||||
|
logo: {
|
||||||
|
verticalAlign: "middle",
|
||||||
|
height: 52,
|
||||||
|
[theme.breakpoints.down("xs")]: {
|
||||||
|
height: 42,
|
||||||
|
},
|
||||||
|
},
|
||||||
link: {
|
link: {
|
||||||
...theme.typography.body1,
|
...theme.typography.body1,
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
marginLeft: theme.spacing(6),
|
marginLeft: theme.spacing(6),
|
||||||
[theme.breakpoints.down("sm")]: {
|
[theme.breakpoints.down("sm")]: {
|
||||||
marginLeft: theme.spacing(4),
|
marginLeft: theme.spacing(2.5),
|
||||||
},
|
},
|
||||||
[theme.breakpoints.down("xs")]: {
|
[theme.breakpoints.down("xs")]: {
|
||||||
marginLeft: theme.spacing(2),
|
marginLeft: theme.spacing(1),
|
||||||
},
|
},
|
||||||
"&.active": {
|
"&.active": {
|
||||||
color: theme.palette.secondary.light,
|
color: theme.palette.secondary.light,
|
||||||
|
@ -73,7 +79,7 @@ function App() {
|
||||||
<img
|
<img
|
||||||
src={wormholeLogo}
|
src={wormholeLogo}
|
||||||
alt="Wormhole Logo"
|
alt="Wormhole Logo"
|
||||||
style={{ height: 52 }}
|
className={classes.logo}
|
||||||
/>
|
/>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<div className={classes.spacer} />
|
<div className={classes.spacer} />
|
||||||
|
@ -112,6 +118,16 @@ function App() {
|
||||||
<GitHub />
|
<GitHub />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
<Tooltip title="View the FAQ">
|
||||||
|
<IconButton
|
||||||
|
href="https://docs.wormholenetwork.com/wormhole/faqs"
|
||||||
|
target="_blank"
|
||||||
|
size="small"
|
||||||
|
className={classes.link}
|
||||||
|
>
|
||||||
|
<Help />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</Hidden>
|
</Hidden>
|
||||||
<Hidden implementation="css" smUp>
|
<Hidden implementation="css" smUp>
|
||||||
|
@ -135,6 +151,16 @@ function App() {
|
||||||
<Publish />
|
<Publish />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
<Tooltip title="View the FAQ">
|
||||||
|
<IconButton
|
||||||
|
href="https://docs.wormholenetwork.com/wormhole/faqs"
|
||||||
|
target="_blank"
|
||||||
|
size="small"
|
||||||
|
className={classes.link}
|
||||||
|
>
|
||||||
|
<Help />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
</Hidden>
|
</Hidden>
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
</AppBar>
|
</AppBar>
|
||||||
|
|
Loading…
Reference in New Issue