Slack commands and post working agagain with new flow

This commit is contained in:
Tom Moor
2018-05-29 23:33:30 -07:00
parent 57aaea60da
commit 55e1451160
6 changed files with 27 additions and 156 deletions

View File

@@ -17,11 +17,7 @@ type Props = {
function SlackButton({ auth, state, label, scopes, redirectUri }: Props) {
const handleClick = () =>
(window.location.href = slackAuth(
state ? auth.saveOauthState(state) : auth.genOauthState(),
scopes,
redirectUri
));
(window.location.href = slackAuth(state, scopes, redirectUri));
return (
<Button onClick={handleClick} icon={<SpacedSlackLogo size={24} />} neutral>