Skip to content

Commit

Permalink
[DDW-646] Fix prop validations in Delegation components
Browse files Browse the repository at this point in the history
  • Loading branch information
topseniors committed May 16, 2019
1 parent c3a367f commit d3c86f7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion source/renderer/app/components/staking/Delegation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
import DelegationInfo from './DelegationInfo';
import styles from './Delegation.scss';

type Props = { currentLocale: string, timeLeft: number };
type Props = { currentLocale: string, timeLeft?: number };

@observer
export default class Delegation extends Component<Props> {
Expand Down
5 changes: 1 addition & 4 deletions source/renderer/app/components/staking/DelegationInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ const messages = defineMessages({
},
});

type Props = {
currentLocale: String,
timeLeft: number,
};
type Props = { currentLocale: string, timeLeft?: number };

@observer
export default class DelegationInfo extends Component<Props> {
Expand Down
28 changes: 14 additions & 14 deletions source/renderer/app/i18n/locales/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1547,59 +1547,59 @@
"description": "Headline for the Decentralisation notification.",
"end": {
"column": 3,
"line": 13
"line": 15
},
"file": "source/renderer/app/components/staking/Delegation.js",
"file": "source/renderer/app/components/staking/DelegationInfo.js",
"id": "paper.delegation.notification.heading",
"start": {
"column": 11,
"line": 9
"line": 11
}
},
{
"defaultMessage": "!!!Cardano will soon start its transition from a federated to a decentralized system.This will mark the beginning of the reward era in which stakeholders will be able to participate in the process of staking or can delegate their stake to stake pools to earn rewards in ada.",
"description": "Info for the Decentralisation notification.",
"end": {
"column": 3,
"line": 19
"line": 21
},
"file": "source/renderer/app/components/staking/Delegation.js",
"file": "source/renderer/app/components/staking/DelegationInfo.js",
"id": "paper.delegation.notification.info",
"start": {
"column": 8,
"line": 14
"line": 16
}
},
{
"defaultMessage": "!!!Reward era begins in",
"description": "Description for the Decentralisation notification.",
"end": {
"column": 3,
"line": 24
"line": 26
},
"file": "source/renderer/app/components/staking/Delegation.js",
"file": "source/renderer/app/components/staking/DelegationInfo.js",
"id": "paper.delegation.notification.timeLeftDesc",
"start": {
"column": 16,
"line": 20
"line": 22
}
},
{
"defaultMessage": "!!!Learn more",
"description": "Button Label for the Decentralisation notification.",
"end": {
"column": 3,
"line": 29
"line": 31
},
"file": "source/renderer/app/components/staking/Delegation.js",
"file": "source/renderer/app/components/staking/DelegationInfo.js",
"id": "paper.delegation.notification.buttonLabel",
"start": {
"column": 15,
"line": 25
"line": 27
}
}
],
"path": "source/renderer/app/components/staking/Delegation.json"
"path": "source/renderer/app/components/staking/DelegationInfo.json"
},
{
"descriptors": [
Expand Down Expand Up @@ -6307,4 +6307,4 @@
],
"path": "source/renderer/app/utils/paperWalletPdfGenerator.json"
}
]
]

0 comments on commit d3c86f7

Please sign in to comment.