fix: added the decoded url for slack integration popup (#958)

This commit is contained in:
Kunal Vishwakarma 2023-04-28 17:55:57 +05:30 committed by GitHub
parent bb40b7feb5
commit 73a757e337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ const useIntegrationPopup = (provider: string | undefined, stateParams?: string)
github: `https://github.com/apps/${
process.env.NEXT_PUBLIC_GITHUB_APP_NAME
}/installations/new?state=${workspaceSlug?.toString()}`,
slack: `https://slack.com/oauth/v2/authorize?scope=chat%3Awrite%2Cim%3Ahistory%2Cim%3Awrite%2Clinks%3Aread%2Clinks%3Awrite%2Cusers%3Aread%2Cusers%3Aread.email&user_scope=&&client_id=${
slack: `https://slack.com/oauth/v2/authorize?scope=chat:write,im:history,im:write,links:read,links:write,users:read,users:read.email&user_scope=&&client_id=${
process.env.NEXT_PUBLIC_SLACK_CLIENT_ID
}&state=${workspaceSlug?.toString()}`,
slackChannel: `https://slack.com/oauth/v2/authorize?scope=incoming-webhook&client_id=${
@ -21,6 +21,7 @@ const useIntegrationPopup = (provider: string | undefined, stateParams?: string)
stateParams ? "," + stateParams : ""
}`,
};
const popup = useRef<any>();
const checkPopup = () => {