|
|
@ -1,12 +1,12 @@ |
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
// eslint-disable-next-line no-use-before-define
|
|
|
|
import {CustomTooltip} from '@remix-ui/helper' |
|
|
|
import { CustomTooltip } from '@remix-ui/helper' |
|
|
|
import React from 'react' |
|
|
|
import React from 'react' |
|
|
|
import {FormattedMessage, useIntl} from 'react-intl' |
|
|
|
import { FormattedMessage, useIntl } from 'react-intl' |
|
|
|
import {InstanceContainerProps} from '../types' |
|
|
|
import { InstanceContainerProps } from '../types' |
|
|
|
import {UniversalDappUI} from './universalDappUI' |
|
|
|
import { UniversalDappUI } from './universalDappUI' |
|
|
|
|
|
|
|
|
|
|
|
export function InstanceContainerUI(props: InstanceContainerProps) { |
|
|
|
export function InstanceContainerUI(props: InstanceContainerProps) { |
|
|
|
const {instanceList} = props.instances |
|
|
|
const { instanceList } = props.instances |
|
|
|
|
|
|
|
|
|
|
|
const clearInstance = () => { |
|
|
|
const clearInstance = () => { |
|
|
|
props.clearInstances() |
|
|
|
props.clearInstances() |
|
|
@ -34,7 +34,7 @@ export function InstanceContainerUI(props: InstanceContainerProps) { |
|
|
|
tooltipId="deployAndRunClearInstancesTooltip" |
|
|
|
tooltipId="deployAndRunClearInstancesTooltip" |
|
|
|
tooltipText={<FormattedMessage id="udapp.deployAndRunClearInstances" />} |
|
|
|
tooltipText={<FormattedMessage id="udapp.deployAndRunClearInstances" />} |
|
|
|
> |
|
|
|
> |
|
|
|
<i className="mr-2 udapp_icon far fa-trash-alt" data-id="deployAndRunClearInstances" onClick={clearInstance} aria-hidden="true"></i> |
|
|
|
<i className="mr-1 udapp_icon far fa-trash-alt" data-id="deployAndRunClearInstances" onClick={clearInstance} aria-hidden="true"></i> |
|
|
|
</CustomTooltip> |
|
|
|
</CustomTooltip> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|