Skip to content
Permalink
Browse files

[DDW-646] Fix prop validations in Delegation components

  • Loading branch information...
yakovkaravelov committed May 16, 2019
1 parent c3a367f commit d3c86f70b605ab32b8317722a8254354b015a868
@@ -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> {
@@ -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> {
@@ -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": [
@@ -6307,4 +6307,4 @@
],
"path": "source/renderer/app/utils/paperWalletPdfGenerator.json"
}
]
]

0 comments on commit d3c86f7

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