Skip to content
Permalink
Browse files

[DDW-646] Rename components and variables to delegation from decentra…

…lisation
  • Loading branch information...
yakovkaravelov committed May 14, 2019
1 parent add5ef3 commit 89df97c3b7c0662347172f70876390e08c93695f
Showing with 21 additions and 473 deletions.
  1. +2 −5 source/renderer/app/Routes.js
  2. 0 ...ce/renderer/app/assets/images/sidebar/{decentralisation-ic.inline.svg → delegation-ic.inline.svg}
  3. +2 −2 source/renderer/app/components/staking/{BlockGenerationInfo.js → DelegationInfo.js}
  4. 0 source/renderer/app/components/staking/{BlockGenerationInfo.scss → DelegationInfo.scss}
  5. +2 −2 source/renderer/app/components/staking/Staking.js
  6. +0 −131 source/renderer/app/components/staking/StakingChart.js
  7. +0 −14 source/renderer/app/components/staking/StakingChart.scss
  8. +0 −108 source/renderer/app/components/staking/StakingChartTooltip.js
  9. +0 −27 source/renderer/app/components/staking/StakingChartTooltip.scss
  10. +0 −21 source/renderer/app/components/staking/StakingChartTooltipItem.js
  11. +0 −15 source/renderer/app/components/staking/StakingChartTooltipItem.scss
  12. +0 −31 source/renderer/app/components/staking/StakingSwitch.js
  13. +0 −17 source/renderer/app/components/staking/StakingSwitch.scss
  14. +6 −6 source/renderer/app/config/sidebarConfig.js
  15. +2 −5 source/renderer/app/containers/Root.js
  16. +1 −1 .../renderer/app/containers/staking/{CardanoDecentralisationNotificationPage.js → DelegationPage.js}
  17. +1 −2 source/renderer/app/routes-config.js
  18. +2 −2 source/renderer/app/stores/AppStore.js
  19. +1 −1 storybook/stories/{DecentralisationNotification.stories.js → Delegation.stories.js}
  20. +1 −1 storybook/stories/Sidebar.stories.js
  21. +0 −24 storybook/stories/Staking.stories.js
  22. +0 −55 storybook/stories/StakingChart.stories.js
  23. +1 −3 storybook/stories/index.js
@@ -17,7 +17,7 @@ import TermsOfUsePage from './containers/profile/TermsOfUsePage';
import DataLayerMigrationPage from './containers/profile/DataLayerMigrationPage';
import DisplaySettingsPage from './containers/settings/categories/DisplaySettingsPage';
import PaperWalletCreateCertificatePage from './containers/wallet/PaperWalletCreateCertificatePage';
import CardanoDecentralisationNotificationPage from './containers/staking/CardanoDecentralisationNotificationPage';
import DelegationPage from './containers/staking/DelegationPage';
import Wallet from './containers/wallet/Wallet';
import WalletSummaryPage from './containers/wallet/WalletSummaryPage';
import WalletSendPage from './containers/wallet/WalletSendPage';
@@ -67,9 +67,6 @@ export const Routes = (
path={ROUTES.PAPER_WALLET_CREATE_CERTIFICATE}
component={PaperWalletCreateCertificatePage}
/>
<Route
path={ROUTES.CARDANO_DECENTRALISATION_NOTIFICATION}
component={CardanoDecentralisationNotificationPage}
/>
<Route path={ROUTES.DELEGATION} component={DelegationPage} />
</Route>
);
@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
import { Button } from 'react-polymorph/lib/components/Button';
import { ButtonSkin } from 'react-polymorph/lib/skins/simple/ButtonSkin';
import moment from 'moment';
import styles from './BlockGenerationInfo.scss';
import styles from './DelegationInfo.scss';

type Props = {
heading: string,
@@ -15,7 +15,7 @@ type Props = {
};

@observer
export default class BlockGenerationInfo extends Component<Props> {
export default class DelegationInfo extends Component<Props> {
render() {
const { heading, info, timeLeftDesc, timeLeft, buttonLabel } = this.props;
const duration = moment.duration(timeLeft);
@@ -2,7 +2,7 @@
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import BlockGenerationInfo from './BlockGenerationInfo';
import DelegationInfo from './DelegationInfo';
import styles from './Staking.scss';

const messages = defineMessages({
@@ -41,7 +41,7 @@ export default class Staking extends Component<any> {
return (
<div className={styles.component}>
<div className={styles.mainContent}>
<BlockGenerationInfo
<DelegationInfo
heading={intl.formatMessage(messages.heading)}
info={intl.formatMessage(messages.info)}
timeLeftDesc={intl.formatMessage(messages.timeLeftDesc)}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 89df97c

Please sign in to comment.
You can’t perform that action at this time.