Working on 'static' pages

This commit is contained in:
Tom Moor
2017-10-22 16:33:10 -07:00
parent 4d53c4aa00
commit aceaf261d2
10 changed files with 249 additions and 76 deletions

View File

@ -4,8 +4,8 @@ import { observer, inject } from 'mobx-react';
import AuthStore from 'stores/AuthStore';
type Props = {
children: React.Element<any>,
scopes?: Array<string>,
children: React$Element<*>,
scopes?: string[],
auth: AuthStore,
redirectUri: string,
};
@ -32,9 +32,7 @@ type Props = {
};
const urlParams = Object.keys(params)
.map(key => {
return `${key}=${encodeURIComponent(params[key])}`;
})
.map(key => `${key}=${encodeURIComponent(params[key])}`)
.join('&');
return `${baseUrl}?${urlParams}`;