pull/5370/head
Joseph Izang 2 years ago committed by Aniket
parent 3ee8f8ed51
commit a8d19bd49f
  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() this.renderComponent()
await this.call('tabs', 'focus', 'solidityumlgen') await this.call('tabs', 'focus', 'solidityumlgen')
} catch (error) { } catch (error) {
console.log({ error }) const logError = { error }
} }
}) })
this.on('theme', 'themeChanged', (theme) => { this.on('theme', 'themeChanged', (theme) => {
@ -169,7 +169,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
renderComponent () { renderComponent () {
this.dispatch({ this.dispatch({
...this, ...this,
plugin: this,
updatedSvg: this.updatedSvg, updatedSvg: this.updatedSvg,
loading: this.loading, loading: this.loading,
themeSelected: this.currentlySelectedTheme, themeSelected: this.currentlySelectedTheme,
@ -180,7 +179,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
updateComponent(state: any) { updateComponent(state: any) {
return <RemixUiSolidityUmlGen return <RemixUiSolidityUmlGen
plugin={state}
updatedSvg={state.updatedSvg} updatedSvg={state.updatedSvg}
loading={state.loading} loading={state.loading}
themeSelected={state.currentlySelectedTheme} themeSelected={state.currentlySelectedTheme}

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

Loading…
Cancel
Save