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(() => {
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])
function handleChangeTokenState(e: string): void {
@ -79,7 +79,7 @@ export const GitHubCredentials = () => {
</button>
</div>
{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 />
</>
);

@ -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
gitDispatch = gitDispatcher
loaderDispatch = loaderDispatcher

Loading…
Cancel
Save