Created
March 18, 2019 23:29
-
-
Save marcelmokos/63500af006ee6e365208cc91d7815bcb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import {inject, observer} from "mobx-react"; | |
export class SubjectsPresenter extends React.Component {...} | |
export default inject( | |
({subjectStore, translator}, {subjectSelections, ...props}) => { | |
const subjectOptions = subjectStore.getFilteredSubjects(subjectSelections); | |
return { | |
subjectOptions, | |
translator, | |
...props, | |
}; | |
}, | |
)(observer(SubjectsPresenter)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment