Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus authored and yann300 committed Jul 11, 2024
1 parent 8b946df commit 3672ec0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ export function Workspace() {
setState((prevState) => {
return { ...prevState, loggedInGithub: true, githubUser: data.user }
})
}
}
}
global.plugin.on('dgit', 'disconnectFromGithub', () => {
global.plugin.on('dgit', 'disconnectFromGithub', () => {
setState((prevState) => {
return { ...prevState, loggedInGithub: false, githubUser: null }
})
})
global.plugin.on('dgit', 'loggedInGithubChanged', () => {
global.plugin.on('dgit', 'loggedInGithubChanged', () => {
run()
})
})
run()
}, [])

Expand Down Expand Up @@ -1164,8 +1164,8 @@ export function Workspace() {
}
</span>
<span className="d-flex">
{
!state.loggedInGithub && <CustomTooltip
{
!state.loggedInGithub && <CustomTooltip
placement="right"
tooltipId="githubNotLogged"
tooltipClasses="text-nowrap"
Expand All @@ -1176,18 +1176,18 @@ export function Workspace() {
<span onClick={() => logInGithub() } className="ml-1 text-success"> Sign in </span>
</div>
</CustomTooltip>
}
{
state.loggedInGithub && <CustomTooltip
}
{
state.loggedInGithub && <CustomTooltip
placement="right"
tooltipId="githubLoggedIn"
tooltipClasses="text-nowrap"
tooltipText={state.githubUser && intl.formatMessage({ id: 'filePanel.gitHubLoggedAs' }, { githubuser: state.githubUser.login }) || ''}
>
<img width={20} height={20} data-id={`connected-img-${state.githubUser && state.githubUser.login}`} src={state.githubUser && state.githubUser.avatar_url} className="remixui_avatar_user ml-2" />
</CustomTooltip>
}
</span>
}
</span>
</div>
</div>
<div className='mx-2'>
Expand Down

0 comments on commit 3672ec0

Please sign in to comment.