Skip to content

Commit

Permalink
Resolve linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Dec 11, 2024
1 parent 0760693 commit 1ebfc88
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ConnectionAlert, ConnectionAlertData>

function ContactSupport() {
return (
Expand Down Expand Up @@ -89,7 +88,7 @@ export default function ConnectWalletAlert(props: ConnectWalletAlertProps) {
title,
description,
...restData
} = type ? CONNECTION_ALERTS[type] : {}
} = (type ? CONNECTION_ALERTS[type] : {}) as ConnectionAlertData

return (
<AnimatePresence initial={false}>
Expand Down

0 comments on commit 1ebfc88

Please sign in to comment.