pull/4791/head
filip mertens 6 months ago
parent deea4edbd2
commit 8d5cda9d7e
  1. 4
      libs/remix-ui/git/src/components/panels/githubcredentials.tsx
  2. 2
      libs/remix-ui/git/src/lib/listeners.ts

@ -19,7 +19,7 @@ export const GitHubCredentials = () => {
useEffect(() => { useEffect(() => {
refresh() refresh()
setScopeWarning(!(context.gitHubScopes && context.gitHubScopes.length > 0)) setScopeWarning(!(context.gitHubScopes && context.gitHubScopes.length > 0))
}, [loader.plugin, context.gitHubAccessToken, context.userEmails, context.gitHubUser, context.gitHubScopes]) }, [loader.plugin, context.gitHubAccessToken, context.userEmails, context.gitHubUser, context.gitHubScopes])
function handleChangeTokenState(e: string): void { function handleChangeTokenState(e: string): void {
@ -79,7 +79,7 @@ export const GitHubCredentials = () => {
</button> </button>
</div> </div>
{scopeWarning? {scopeWarning?
<div className="text-warning">Your GitHub token may not have the correct permissions. Please use the login with GitHub feature.</div>:null} <div className="text-warning">Your GitHub token may not have the correct permissions. Please use the login with GitHub feature.</div>:null}
<hr /> <hr />
</> </>
); );

@ -34,7 +34,7 @@ class AsyncDebouncedQueue {
} }
} }
export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<gitActionDispatch>, loaderDispatcher: React.Dispatch<any>, setAtivePanel: React.Dispatch<React.SetStateAction<string>>) => { export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<gitActionDispatch>, loaderDispatcher: React.Dispatch<any>, setAtivePanel: React.Dispatch<React.SetStateAction<string>>) => {
plugin = viewPlugin plugin = viewPlugin
gitDispatch = gitDispatcher gitDispatch = gitDispatcher
loaderDispatch = loaderDispatcher loaderDispatch = loaderDispatcher

Loading…
Cancel
Save