Skip to content

Commit

Permalink
fix Mobx Injector warnnig by add wrappedComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
SagiMedina committed Nov 9, 2016
1 parent 5131137 commit 1e0bcf6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions static/build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/src/js/components/cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class CPUGraph extends Component {
}
}

CPUGraph.propTypes = {
CPUGraph.wrappedComponent.propTypes = {
SystemDataStore: React.PropTypes.object.isRequired,
};

Expand Down
2 changes: 1 addition & 1 deletion static/src/js/components/disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Disk = inject('SystemDataStore')(observer(props =>
</div>
));

Disk.propTypes = {
Disk.wrappedComponent.propTypes = {
SystemDataStore: React.PropTypes.object.isRequired,
};

Expand Down
2 changes: 1 addition & 1 deletion static/src/js/components/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Download = inject('SystemDataStore')(observer(props =>
</div>
));

Download.propTypes = {
Download.wrappedComponent.propTypes = {
SystemDataStore: React.PropTypes.object.isRequired,
};

Expand Down
2 changes: 1 addition & 1 deletion static/src/js/components/ram.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class RamDoughnut extends Component {
}
}

RamDoughnut.propTypes = {
RamDoughnut.wrappedComponent.propTypes = {
SystemDataStore: React.PropTypes.object.isRequired,
};

Expand Down
2 changes: 1 addition & 1 deletion static/src/js/components/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Upload = inject('SystemDataStore')(observer(props =>
</div>
));

Upload.propTypes = {
Upload.wrappedComponent.propTypes = {
SystemDataStore: React.PropTypes.object.isRequired,
};

Expand Down
2 changes: 1 addition & 1 deletion static/src/js/components/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const UserName = inject('SystemDataStore')(observer(props =>
</div>
));

UserName.propTypes = {
UserName.wrappedComponent.propTypes = {
SystemDataStore: React.PropTypes.object.isRequired,
};

Expand Down

0 comments on commit 1e0bcf6

Please sign in to comment.