From 57b2c7b6c63f911292e299e9540a2ba7ba9466f3 Mon Sep 17 00:00:00 2001 From: lianahus Date: Thu, 25 Jul 2024 14:44:28 +0200 Subject: [PATCH] fixing warnings --- apps/remix-ide/src/app/plugins/remixGuide.tsx | 2 +- .../templates-selection/templates-selection-plugin.tsx | 3 ++- apps/remix-ide/src/app/providers/environment-explorer.tsx | 6 +++--- libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx | 5 ++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/remixGuide.tsx b/apps/remix-ide/src/app/plugins/remixGuide.tsx index d08d350b0b..17cbff4f7e 100644 --- a/apps/remix-ide/src/app/plugins/remixGuide.tsx +++ b/apps/remix-ide/src/app/plugins/remixGuide.tsx @@ -123,7 +123,7 @@ export class RemixGuidePlugin extends ViewPlugin { expandViewEl={ cell.expandViewElement } - id={cell.title} + key={cell.title} handleExpand={() => { this.showVideo = true this.videoID = cell.expandViewElement.videoID diff --git a/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx b/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx index 7ad3fa01a8..7d085a0e49 100644 --- a/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx +++ b/apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx @@ -154,6 +154,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin { templates(window._intl).map(template => { return @@ -161,7 +162,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin { return { if (pinned) { this.emit('providerPinned', provider.name, provider) @@ -144,7 +144,7 @@ export class EnvironmentExplorer extends ViewPlugin { classList='EECellStyle' searchKeywords={['Remix VMs', provider.name, provider.displayName, provider.title, provider.description]} pinned={this.pinnedProviders.includes(provider.name)} - id={provider.name} + key={provider.name} pinStateCallback={async (pinned: boolean) => { if (pinned) { this.emit('providerPinned', provider.name, provider) @@ -177,7 +177,7 @@ export class EnvironmentExplorer extends ViewPlugin { classList='EECellStyle' searchKeywords={['Externals', provider.name, provider.displayName, provider.title, provider.description]} pinned={this.pinnedProviders.includes(provider.name)} - id={provider.name} + key={provider.name} pinStateCallback={async (pinned: boolean) => { if (pinned) { this.emit('providerPinned', provider.name, provider) diff --git a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx index 1a8e6983db..9dcba37d49 100644 --- a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx +++ b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx @@ -25,7 +25,6 @@ interface RemixUIGridCellProps { children?: ReactNode expandViewEl?: any handleExpand?: any - id: string searchKeywords?: string[] } @@ -76,7 +75,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
- { !props.hideTitle &&
+ { !props.hideTitle &&
{ props.logo && } { props.logos && props.logos.map((logo) => )} { props.title && @@ -98,7 +97,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => { { filterCon.showPin &&