Skip to content

Commit

Permalink
Merge pull request #3687 from Emurgo/ruslan/YOEXT-1432/remove-actions
Browse files Browse the repository at this point in the history
remove actions
  • Loading branch information
vsubhuman authored Dec 24, 2024
2 parents 5ce89c2 + 574942f commit dfa6aa2
Show file tree
Hide file tree
Showing 235 changed files with 1,691 additions and 2,996 deletions.
8 changes: 3 additions & 5 deletions packages/yoroi-extension/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import type { Node } from 'react';
import type { RouterHistory } from 'react-router-dom';
import type { StoresMap } from './stores';
import type { ActionsMap } from './actions';
import { Component } from 'react';
import { observer } from 'mobx-react';
import { Router } from 'react-router-dom';
Expand All @@ -26,7 +25,6 @@ addLocaleData(locales);

type Props = {|
+stores: StoresMap,
+actions: ActionsMap,
+history: RouterHistory,
|};
type State = {|
Expand Down Expand Up @@ -102,18 +100,18 @@ class App extends Component<Props, State> {
}

getContent: void => ?Node = () => {
const { stores, actions, history } = this.props;
const { stores, history } = this.props;
if (this.state.crashed === true) {
return <CrashPage />;
}
if (stores.serverConnectionStore.isMaintenance) {
return <MaintenancePage stores={stores} actions={actions} />;
return <MaintenancePage stores={stores} />;
}
return (
<Router history={history}>
<div style={{ height: '100%' }}>
<Support />
{Routes(stores, actions)}
{Routes(stores)}
</div>
</Router>
);
Expand Down
165 changes: 81 additions & 84 deletions packages/yoroi-extension/app/Routes.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/yoroi-extension/app/UI/layout/GeneralPageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ export default class GeneralPageLayout extends React.Component {
};

render() {
const { children, actions, navbar, stores } = this.props;
const sidebarContainer = <SidebarContainer actions={actions} stores={stores} />;
const { children, navbar, stores } = this.props;
const sidebarContainer = <SidebarContainer stores={stores} />;
const { intl } = this.context;

return (
<IntlProvider intl={intl}>
<ModalProvider>
<ModalManager />
<TopBarLayout banner={<BannerContainer actions={actions} stores={stores} />} sidebar={sidebarContainer} navbar={navbar}>
<TopBarLayout banner={<BannerContainer stores={stores} />} sidebar={sidebarContainer} navbar={navbar}>
{children}
</TopBarLayout>
</ModalProvider>
Expand Down
5 changes: 0 additions & 5 deletions packages/yoroi-extension/app/actions/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions packages/yoroi-extension/app/actions/ada/ada-wallets-actions.js

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions packages/yoroi-extension/app/actions/ada/hw-connect-actions.js

This file was deleted.

This file was deleted.

32 changes: 0 additions & 32 deletions packages/yoroi-extension/app/actions/ada/index.js

This file was deleted.

44 changes: 0 additions & 44 deletions packages/yoroi-extension/app/actions/ada/ledger-send-actions.js

This file was deleted.

29 changes: 0 additions & 29 deletions packages/yoroi-extension/app/actions/ada/trezor-send-actions.js

This file was deleted.

23 changes: 0 additions & 23 deletions packages/yoroi-extension/app/actions/ada/voting-actions.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/yoroi-extension/app/actions/base/base-profile-actions.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/yoroi-extension/app/actions/common/addresses-actions.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

32 changes: 0 additions & 32 deletions packages/yoroi-extension/app/actions/common/tx-builder-actions.js

This file was deleted.

Loading

0 comments on commit dfa6aa2

Please sign in to comment.