Skip to content

Commit

Permalink
improve svs details
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 16, 2024
1 parent 296e808 commit b651f97
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions apps/remix-ide/src/app/providers/environment-explorer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react' // eslint-disable-line
import { ViewPlugin } from '@remixproject/engine-web'
import { PluginViewWrapper } from '@remix-ui/helper'
import { CustomTooltip, PluginViewWrapper } from '@remix-ui/helper'
import { RemixUIGridView } from '@remix-ui/remix-ui-grid-view'
import { RemixUIGridSection } from '@remix-ui/remix-ui-grid-section'
import { RemixUIGridCell } from '@remix-ui/remix-ui-grid-cell'
Expand Down Expand Up @@ -30,7 +30,6 @@ type ProvidersSection = `Injected` | 'Remix VMs' | 'Externals' | 'Remix forked V
export class EnvironmentExplorer extends ViewPlugin {
providers: { [key in ProvidersSection]: Provider[] }
providersFlat: { [key: string]: Provider }
savedStates
pinnedProviders: string[]
dispatch: React.Dispatch<any> = () => {}

Expand All @@ -44,7 +43,6 @@ export class EnvironmentExplorer extends ViewPlugin {
'Remix forked VMs': [],
'Externals': []
}
this.savedStates = []
}

async onActivation(): Promise<void> {
Expand Down Expand Up @@ -209,8 +207,14 @@ export class EnvironmentExplorer extends ViewPlugin {
}
}}
>
<div><b>Latest Block: </b>{latestBlock}</div>
<div><b>Saved at: </b>{(new Date(timestamp)).toDateString()}</div>
<div><b>Latest Block: </b>{parseInt(latestBlock)}</div>
<CustomTooltip
placement="auto"
tooltipId="overlay-tooltip-compile"
tooltipText={`Saved at: ${(new Date(timestamp)).toLocaleString()}`}
>
<div><b>Saved at: </b>{(new Date(timestamp)).toDateString()}</div>
</CustomTooltip>
</RemixUIGridCell>
})}</RemixUIGridSection>
<RemixUIGridSection
Expand Down

0 comments on commit b651f97

Please sign in to comment.