Add OAuth support
This commit is contained in:
1 parent
0cbf15c46e
commit
9e7314e4a5
16 files changed
+273
-10531
No files matched your search
@@ -4,12 +4,12 @@ import StudyListWithData from './StudyListWithData.js';
|
||||
|
||||
const isActive = (a) => a.active === true;
|
||||
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
const mapStateToProps = state => {
|
||||
const activeServer = state.servers.servers.find(isActive);
|
||||
|
||||
return {
|
||||
server: activeServer,
|
||||
...ownProps
|
||||
user: state.oidc.user,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user