pull/3363/head
Joseph Izang 2 years ago committed by Aniket
parent 49befc38bc
commit b42ad73dbc
  1. 4
      apps/remix-ide/src/app/plugins/solidity-umlgen.tsx
  2. 4
      libs/remix-ui/solidity-uml-gen/src/lib/solidity-uml-gen.tsx

@ -86,7 +86,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
this.renderComponent()
await this.call('tabs', 'focus', 'solidityumlgen')
} catch (error) {
console.log({ error })
const logError = { error }
}
})
this.on('theme', 'themeChanged', (theme) => {
@ -169,7 +169,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
renderComponent () {
this.dispatch({
...this,
plugin: this,
updatedSvg: this.updatedSvg,
loading: this.loading,
themeSelected: this.currentlySelectedTheme,
@ -180,7 +179,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
updateComponent(state: any) {
return <RemixUiSolidityUmlGen
plugin={state}
updatedSvg={state.updatedSvg}
loading={state.loading}
themeSelected={state.currentlySelectedTheme}

@ -4,7 +4,6 @@ import { TransformComponent, TransformWrapper } from 'react-zoom-pan-pinch'
import { ISolidityUmlGen, ThemeSummary } from '../types'
import './css/solidity-uml-gen.css'
export interface RemixUiSolidityUmlGenProps {
plugin?: ISolidityUmlGen
updatedSvg?: string
loading?: boolean
themeSelected?: string
@ -23,9 +22,8 @@ interface ActionButtonsProps {
export function RemixUiSolidityUmlGen ({ updatedSvg, loading, plugin }: RemixUiSolidityUmlGenProps) {
export function RemixUiSolidityUmlGen ({ updatedSvg, loading }: RemixUiSolidityUmlGenProps) {
const [showViewer, setShowViewer] = useState(false)
const [svgPayload, setSVGPayload] = useState<string>('')
const [validSvg, setValidSvg] = useState(false)
useEffect(() => {

Loading…
Cancel
Save