From da2cee140f08e696adb815a57805087497597e8c Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 4 Jun 2019 15:48:00 +0200 Subject: [PATCH] Fix snippet saving (#1272) --- packages/app-js/src/ActionButtons.tsx | 20 ++++++++---------- packages/app-js/src/Output.tsx | 30 +++++++++++++++------------ packages/app-js/src/Playground.tsx | 12 ++++++----- packages/app-js/src/index.tsx | 4 +--- 4 files changed, 34 insertions(+), 32 deletions(-) diff --git a/packages/app-js/src/ActionButtons.tsx b/packages/app-js/src/ActionButtons.tsx index 19d7e195a7..4d385dc34e 100644 --- a/packages/app-js/src/ActionButtons.tsx +++ b/packages/app-js/src/ActionButtons.tsx @@ -6,7 +6,7 @@ import { BareProps, I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import { Button as SUIB, Popup } from 'semantic-ui-react'; -import { Button, Input, TxComponent } from '@polkadot/ui-app'; +import { Button, Input } from '@polkadot/ui-app'; import translate from './translate'; @@ -27,7 +27,7 @@ type State = { snippetName: string }; -class ActionButtons extends TxComponent { +class ActionButtons extends React.PureComponent { state: State = { isOpen: false, shareText: this.props.t('Generate link to share code example'), @@ -59,7 +59,7 @@ class ActionButtons extends TxComponent { // FIXME: The event trigger on='hover' does not work together with the ui-app' //