Skip to content

Commit 1432543

Browse files
author
Lucas Araujo
committed
[DDW-796] Add observer
1 parent 1a72281 commit 1432543

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

source/renderer/app/components/voting/voting-info/ResultsPhase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import React from 'react';
3+
import { observer } from 'mobx-react';
34
import { injectIntl } from 'react-intl';
45
import {
56
VOTING_CAST_END_DATE,
@@ -70,4 +71,4 @@ function ResultsPhase({
7071
);
7172
}
7273

73-
export default injectIntl(ResultsPhase);
74+
export default injectIntl(observer(ResultsPhase));

source/renderer/app/components/voting/voting-info/SnapshotPhase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import React from 'react';
3+
import { observer } from 'mobx-react';
34
import { injectIntl } from 'react-intl';
45
import {
56
CURRENT_VOTING_FUND_NUMBER,
@@ -77,4 +78,4 @@ function SnapshotPhase({
7778
);
7879
}
7980

80-
export default injectIntl(SnapshotPhase);
81+
export default injectIntl(observer(SnapshotPhase));

source/renderer/app/components/voting/voting-info/TallyingPhase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import React from 'react';
3+
import { observer } from 'mobx-react';
34
import { injectIntl } from 'react-intl';
45
import {
56
CURRENT_VOTING_FUND_NUMBER,
@@ -68,4 +69,4 @@ function TallyingPhase({
6869
);
6970
}
7071

71-
export default injectIntl(TallyingPhase);
72+
export default injectIntl(observer(TallyingPhase));

source/renderer/app/components/voting/voting-info/VotingPhase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import React from 'react';
3+
import { observer } from 'mobx-react';
34
import { injectIntl } from 'react-intl';
45
import {
56
CURRENT_VOTING_FUND_NUMBER,
@@ -70,4 +71,4 @@ function VotingPhase({
7071
);
7172
}
7273

73-
export default injectIntl(VotingPhase);
74+
export default injectIntl(observer(VotingPhase));

0 commit comments

Comments
 (0)