diff --git a/.babelrc b/.babelrc index 577b026..eb62d26 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,24 @@ { - "plugins": ["transform-object-rest-spread"], - "presets": ["stage-2"] -} + "plugins": [ + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-syntax-dynamic-import", + "@babel/plugin-syntax-import-meta", + "@babel/plugin-proposal-class-properties", + "@babel/plugin-proposal-json-strings", + [ + "@babel/plugin-proposal-decorators", + { + "legacy": true + } + ], + "@babel/plugin-proposal-function-sent", + "@babel/plugin-proposal-export-namespace-from", + "@babel/plugin-proposal-numeric-separator", + "@babel/plugin-proposal-throw-expressions" + ], + "presets": [], + "ignore": [ + "config/", + "node_modules" + ] + } diff --git a/app/components/ens/registerSubDomain.js b/app/components/ens/registerSubDomain.js index 95a2a59..85b5a06 100644 --- a/app/components/ens/registerSubDomain.js +++ b/app/components/ens/registerSubDomain.js @@ -33,6 +33,7 @@ const DisplayBox = ({ displayType, pubKey }) => ( ); +const formRef = React.createRef(); const displayTerms = status => status === 'terms'; const InnerForm = ({ values, @@ -51,7 +52,7 @@ const InnerForm = ({ SNTAllowance, SNTBalance, }) => ( -