aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/dialogs
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 07:58:12 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 07:58:12 +0800
commit89f368a8b8b2419f9f347ad20da94199d533fa26 (patch)
tree774d87cea3f7d5a61e2cfc1996e887f3f9588d20 /packages/website/ts/components/dialogs
parent672c8acaca76851306276d0d03c5df0c75aa8bc6 (diff)
downloaddexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.tar
dexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.tar.gz
dexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.tar.bz2
dexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.tar.lz
dexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.tar.xz
dexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.tar.zst
dexon-sol-tools-89f368a8b8b2419f9f347ad20da94199d533fa26.zip
Add notice dialog to balances page about updating the WETH contract. We also draw attention to the new dedicated section for unwrapping from outdated WETH tokens
Diffstat (limited to 'packages/website/ts/components/dialogs')
-rw-r--r--packages/website/ts/components/dialogs/wrapped_eth_section_notice_dialog.tsx38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/website/ts/components/dialogs/wrapped_eth_section_notice_dialog.tsx b/packages/website/ts/components/dialogs/wrapped_eth_section_notice_dialog.tsx
new file mode 100644
index 000000000..d13b2e8ce
--- /dev/null
+++ b/packages/website/ts/components/dialogs/wrapped_eth_section_notice_dialog.tsx
@@ -0,0 +1,38 @@
+import Dialog from 'material-ui/Dialog';
+import FlatButton from 'material-ui/FlatButton';
+import {colors} from 'material-ui/styles';
+import * as React from 'react';
+
+interface WrappedEthSectionNoticeDialogProps {
+ isOpen: boolean;
+ onToggleDialog: () => void;
+}
+
+export function WrappedEthSectionNoticeDialog(props: WrappedEthSectionNoticeDialogProps) {
+ return (
+ <Dialog
+ title="Dedicated Wrapped Ether Section"
+ titleStyle={{fontWeight: 100}}
+ actions={[
+ <FlatButton
+ key="acknowledgeWrapEthSection"
+ label="Sounds good"
+ onTouchTap={props.onToggleDialog.bind(this)}
+ />,
+ ]}
+ open={props.isOpen}
+ onRequestClose={props.onToggleDialog.bind(this)}
+ autoScrollBodyContent={true}
+ modal={true}
+ >
+ <div className="pt2" style={{color: colors.grey700}}>
+ <div>
+ We have recently updated the Wrapped Ether token used by 0x Portal.
+ Don't worry, unwrapping Ether tied to the old Wrapped Ether token can
+ be done at any time by clicking on the "Wrap ETH" section in the menu
+ to the left.
+ </div>
+ </div>
+ </Dialog>
+ );
+}