fix hover blinking on enable AI icon

pull/4810/head
aniket-engg 6 months ago committed by Aniket
parent 5261ade9b4
commit 9a971b0c22
  1. 4
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -234,7 +234,7 @@ export const TabsUI = (props: TabsUIProps) => {
<button <button
data-id="explain-editor" data-id="explain-editor"
id='explain_btn' id='explain_btn'
className='btn text-ai pl-2 pr-0 py-0 d-flex' className='btn text-ai pl-2 pr-0 py-0'
disabled={!(tabsState.currentExt === 'sol') || explaining} disabled={!(tabsState.currentExt === 'sol') || explaining}
onClick={async () => { onClick={async () => {
const path = active().substr(active().indexOf('/') + 1, active().length) const path = active().substr(active().indexOf('/') + 1, active().length)
@ -268,7 +268,7 @@ export const TabsUI = (props: TabsUIProps) => {
<button <button
data-id="remix_ai_switch" data-id="remix_ai_switch"
id='remix_ai_switch' id='remix_ai_switch'
className="btn ai-switch text-ai pl-2 pr-0 py-0 d-flex" className="btn ai-switch text-ai pl-2 pr-0 py-0"
disabled={!(tabsState.currentExt === 'sol' )} disabled={!(tabsState.currentExt === 'sol' )}
onClick={async () => { onClick={async () => {
await props.plugin.call('settings', 'updateCopilotChoice', !ai_switch) await props.plugin.call('settings', 'updateCopilotChoice', !ai_switch)

Loading…
Cancel
Save