From 1ebfc884ad43a4c861b67f11589cf9f28e05e191 Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Wed, 11 Dec 2024 12:18:27 +0100 Subject: [PATCH] Resolve linter error --- .../ConnectWalletModal/ConnectWalletAlert.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx b/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx index ba36508d7..44a499d87 100644 --- a/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx +++ b/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx @@ -18,15 +18,14 @@ export enum ConnectionAlert { Default = "DEFAULT", } -type ConnectionAlerts = Record< - ConnectionAlert, - { - title: string - description?: React.ReactNode - status?: AlertStatus - colorScheme?: string - } -> +type ConnectionAlertData = { + title: string + description?: React.ReactNode + status?: AlertStatus + colorScheme?: string +} + +type ConnectionAlerts = Record function ContactSupport() { return ( @@ -89,7 +88,7 @@ export default function ConnectWalletAlert(props: ConnectWalletAlertProps) { title, description, ...restData - } = type ? CONNECTION_ALERTS[type] : {} + } = (type ? CONNECTION_ALERTS[type] : {}) as ConnectionAlertData return (