-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathffWarning.js
31 lines (29 loc) · 1.55 KB
/
ffWarning.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Dialog, Typography, Button } from "@material-ui/core";
import classes from "./ffWarning.module.css";
export default function ffWarning({ close }) {
const navigateToMedium = () => {
window.open("https://andrecronje.medium.com/fair-launches-decentralized-collaboration-and-fixed-forex-ab327a2e4fc4", "_blank");
};
return (
<Dialog fullScreen open={true} onClose={close}>
<div className={classes.dialogContainer}>
<div className={classes.warningContainer}>
<img src="/images/icon-warning.svg" className={classes.warningIcon} />
<Typography className={classes.title1}>Fixed Forex Disclaimer:</Typography>
<Typography className={classes.title2}>Use at your own risk</Typography>
<Typography className={classes.para1} align="center">
This project is now audited but still in ongoing development. Please use with caution.
</Typography>
<div className={classes.buttonsContainer}>
<Button fullWidth variant="contained" size="large" className={classes.primaryButton} onClick={close}>
<Typography className={classes.buttonTextPrimary}>I understand the risks involved, proceed to the app</Typography>
</Button>
<Button fullWidth variant="contained" size="large" className={classes.secondaryButton} onClick={navigateToMedium}>
<Typography className={classes.buttonTextSecondary}>Read more about it on the Medium article</Typography>
</Button>
</div>
</div>
</div>
</Dialog>
);
}