From 1e97491a127b2ea7dce0b4a91c876a16927de173 Mon Sep 17 00:00:00 2001 From: Sergei Novikov Date: Tue, 7 Nov 2023 16:58:06 +0300 Subject: [PATCH] solution: remove invalid stories --- .vscode/tasks.json | 18 +++++----- packages/react-app/stories/Send/index.tsx | 18 ---------- packages/react-app/stories/SignTx/index.tsx | 37 --------------------- 3 files changed, 9 insertions(+), 64 deletions(-) delete mode 100644 packages/react-app/stories/Send/index.tsx delete mode 100644 packages/react-app/stories/SignTx/index.tsx diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 053c0f955..69dc3ea29 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,12 +3,9 @@ "tasks": [ { "type": "npm", - "group": { - "isDefault": true, - "kind": "build" - }, - "label": "build:dev", - "script": "build:dev" + "group": "build", + "label": "clean", + "script": "clean" }, { "type": "npm", @@ -18,9 +15,12 @@ }, { "type": "npm", - "group": "build", - "label": "clean", - "script": "clean" + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "build:dev", + "script": "build:dev" }, { "type": "npm", diff --git a/packages/react-app/stories/Send/index.tsx b/packages/react-app/stories/Send/index.tsx deleted file mode 100644 index 4baa93659..000000000 --- a/packages/react-app/stories/Send/index.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { storiesOf } from '@storybook/react'; -import * as React from 'react'; -import SelectAccount from '../../src/transaction/CreateTransaction/SelectAccount'; -import { MemoryApiMock } from '../__mocks__/apiMock'; -import { BackendMock } from '../__mocks__/backendMock'; -import { providerForStore } from '../storeProvider'; -import withTheme from '../themeProvider'; -import { createWallets, initLauncher, setBalances, setRates } from '../wallets'; - -const api = new MemoryApiMock(); -const backend = new BackendMock(); - -storiesOf('Send', module) - .addDecorator(providerForStore(api, backend, [...initLauncher, ...setRates, ...createWallets, ...setBalances])) - .addDecorator(withTheme) - .add('select account / wallet 1', () => ) - .add('select account / wallet 2', () => ) - .add('select account / wallet 3', () => ); diff --git a/packages/react-app/stories/SignTx/index.tsx b/packages/react-app/stories/SignTx/index.tsx deleted file mode 100644 index 28446fa4f..000000000 --- a/packages/react-app/stories/SignTx/index.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { Wei } from '@emeraldpay/bigamount-crypto'; -import { BlockchainCode, EthereumTransactionType, workflow } from '@emeraldwallet/core'; -import { action } from '@storybook/addon-actions'; -import { storiesOf } from '@storybook/react'; -import * as React from 'react'; -import SignTransaction from '../../src/transaction/SignTransaction'; -import { MemoryApiMock } from '../__mocks__/apiMock'; -import { BackendMock } from '../__mocks__/backendMock'; -import { providerForStore } from '../storeProvider'; -import withTheme from '../themeProvider'; - -const api = new MemoryApiMock(); -const backend = new BackendMock(); - -const ethereumTx = new workflow.CreateEthereumTx({ - amount: new Wei('10000'), - blockchain: BlockchainCode.Goerli, - from: '0x123', - gas: 100, - gasPrice: new Wei('100'), - target: workflow.TxTarget.MANUAL, - to: '0x456', - type: EthereumTransactionType.EIP1559, -}); - -storiesOf('SignTx', module) - .addDecorator(providerForStore(api, backend)) - .addDecorator(withTheme) - .add('default', () => ( - - ));