diff --git a/apps/ui-kit/src/lib/components/molecules/card/CardBody.tsx b/apps/ui-kit/src/lib/components/molecules/card/CardBody.tsx index 3684cbbbbf3..d5332f77231 100644 --- a/apps/ui-kit/src/lib/components/molecules/card/CardBody.tsx +++ b/apps/ui-kit/src/lib/components/molecules/card/CardBody.tsx @@ -1,9 +1,11 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +import { ReactNode } from 'react'; + export type CardBodyProps = { title: string; - subtitle?: string; + subtitle?: string | ReactNode; clickableAction?: React.ReactNode; }; diff --git a/apps/wallet/src/ui/app/components/DAppInfoCard.tsx b/apps/wallet/src/ui/app/components/DAppInfoCard.tsx index aa6717ce2c0..05dc89a0d9f 100644 --- a/apps/wallet/src/ui/app/components/DAppInfoCard.tsx +++ b/apps/wallet/src/ui/app/components/DAppInfoCard.tsx @@ -5,13 +5,14 @@ import { type PermissionType } from '_src/shared/messaging/messages/payloads/permissions'; import { getValidDAppUrl } from '_src/shared/utils'; import { useAccountByAddress } from '../hooks/useAccountByAddress'; -import { Heading } from '../shared/heading'; -import { Link } from '../shared/Link'; import { AccountIcon } from './accounts/AccountIcon'; import { AccountItem } from './accounts/AccountItem'; import { useUnlockAccount } from './accounts/UnlockAccountContext'; -import { DAppPermissionsList } from './DAppPermissionsList'; +import { DAppPermissionList } from './DAppPermissionList'; import { SummaryCard } from './SummaryCard'; +import { Link } from 'react-router-dom'; +import { Card, CardBody, CardImage, CardType, ImageShape, ImageType } from '@iota/apps-ui-kit'; +import { ImageIcon } from '../shared/image-icon'; export interface DAppInfoCardProps { name: string; @@ -29,7 +30,6 @@ export function DAppInfoCard({ permissions, }: DAppInfoCardProps) { const validDAppUrl = getValidDAppUrl(url); - const appHostname = validDAppUrl?.hostname ?? url; const { data: account } = useAccountByAddress(connectedAddress); const { unlockAccount, lockAccount } = useUnlockAccount(); function handleLockAndUnlockClick() { @@ -41,28 +41,24 @@ export function DAppInfoCard({ } } return ( -