File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import {
1717 Text ,
1818} from '@primer/react' ;
1919
20+ import { Constants } from '../constants' ;
21+
2022import { useAppContext } from '../hooks/useAppContext' ;
2123
2224import { Contents } from '../components/layout/Contents' ;
@@ -33,6 +35,7 @@ import {
3335} from '../utils/auth/utils' ;
3436import { rendererLogError } from '../utils/core/logger' ;
3537import { copyToClipboard , openExternalLink } from '../utils/system/comms' ;
38+ import { openDeveloperSettings } from '../utils/system/links' ;
3639
3740interface LocationState {
3841 account ?: Account ;
@@ -262,6 +265,27 @@ export const LoginWithDeviceFlowRoute: FC = () => {
262265 </ Text >
263266 </ Stack >
264267 </ Button >
268+
269+ < Stack gap = "none" >
270+ < Text as = "em" size = "small" >
271+ Note: to change previously granted permissions, revoke Gitify's
272+ access at{ ' ' }
273+ < button
274+ className = "text-gitify-link cursor-pointer"
275+ onClick = { ( ) =>
276+ openDeveloperSettings ( {
277+ hostname : Constants . GITHUB_HOSTNAME ,
278+ method : 'GitHub App' ,
279+ } as Account )
280+ }
281+ title = "GitHub → Developer Settings"
282+ type = "button"
283+ >
284+ GitHub → Developer Settings
285+ </ button >
286+ , then re-authorize above.
287+ </ Text >
288+ </ Stack >
265289 </ Stack >
266290 </ Stack >
267291 ) ;
You can’t perform that action at this time.
0 commit comments