mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-12 03:35:06 -04:00
feat(gui): open links in default browser (#50)
This commit is contained in:
parent
e4141c763b
commit
ff2e3ae8dd
10 changed files with 218 additions and 191 deletions
|
@ -1,4 +1,5 @@
|
|||
import { Box, Button, makeStyles, Typography } from "@material-ui/core";
|
||||
import { open } from "@tauri-apps/plugin-shell";
|
||||
import InfoBox from "../../modal/swap/InfoBox";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
|
@ -27,19 +28,13 @@ export default function ContactInfoBox() {
|
|||
}
|
||||
additionalContent={
|
||||
<Box className={classes.spacedBox}>
|
||||
<Button
|
||||
variant="outlined"
|
||||
onClick={() => window.open(GITHUB_ISSUE_URL)}
|
||||
>
|
||||
<Button variant="outlined" onClick={() => open(GITHUB_ISSUE_URL)}>
|
||||
Open GitHub issue
|
||||
</Button>
|
||||
<Button
|
||||
variant="outlined"
|
||||
onClick={() => window.open(MATRIX_ROOM_URL)}
|
||||
>
|
||||
<Button variant="outlined" onClick={() => open(MATRIX_ROOM_URL)}>
|
||||
Join Matrix room
|
||||
</Button>
|
||||
<Button variant="outlined" onClick={() => window.open(DISCORD_URL)}>
|
||||
<Button variant="outlined" onClick={() => open(DISCORD_URL)}>
|
||||
Join Discord
|
||||
</Button>
|
||||
</Box>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue