small changes to js file

pull/5370/head
Joseph Izang 3 years ago
parent 22b5df6341
commit 9c352abd1a
  1. 1
      apps/remix-ide/src/app/components/vertical-icons.js
  2. 8
      libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx

@ -60,6 +60,7 @@ export class VerticalIcons extends Plugin {
unlinkContent (profile) {
this.targetProfileForRemoval = profile
this.removeIcon(profile)
this.renderComponent()
}
listenOnStatus (profile) {

@ -19,8 +19,6 @@ export interface RemixUiVerticalIconsPanelProps {
verticalIconsPlugin: VerticalIcons
}
let scrollHeight: any
const initialState = {
scrollHeight: 0,
clientHeight: 0,
@ -52,6 +50,12 @@ export function RemixUiVerticalIconsPanel ({
}
})
useEffect(() => {
addEventListener('pluginDisabled', (evt: any) => {
console.log('plugin disabled and it should have a payload ', { evt })
})
}, [Object.keys(verticalIconsPlugin.targetProfileForChange).length])
function onThemeChanged (themeType: any) {
const invert = themeType === 'dark' ? 1 : 0
// @ts-ignore

Loading…
Cancel
Save