{
- const content = (
-
-
- {nonceHelp}
+interface DispatchProps {
+ requestNonce: any;
+}
-
-
- );
+type Props = OwnProps & DispatchProps & StateProps;
- return alwaysDisplay || shouldDisplay ? content : null;
- }}
- />
-);
+class NonceField extends React.Component {
+ public render() {
+ const { alwaysDisplay, requestNonce, nonePending } = this.props;
+ return (
+ {
+ return alwaysDisplay || shouldDisplay ? (
+
+
+
+
+
+
+
+ ) : null;
+ }}
+ />
+ );
+ }
+}
+
+const mapStateToProps = (state: AppState) => {
+ return {
+ nonePending: nonceRequestPending(state)
+ };
+};
+
+export default connect(mapStateToProps, { requestNonce: getNonceRequested })(NonceField);
diff --git a/common/components/index.ts b/common/components/index.ts
index 76c99908..7515dae2 100644
--- a/common/components/index.ts
+++ b/common/components/index.ts
@@ -1,7 +1,6 @@
export * from './AddressField';
export * from './DataField';
export * from './GasLimitField';
-export * from './NonceField';
export * from './AmountField';
export * from './SendEverything';
export * from './UnitDropDown';
@@ -9,6 +8,7 @@ export * from './CurrentCustomMessage';
export * from './GenerateTransaction';
export * from './SendButton';
export * from './SigningStatus';
+export { default as NonceField } from './NonceField';
export { default as Header } from './Header';
export { default as Footer } from './Footer';
export { default as BalanceSidebar } from './BalanceSidebar';