diff --git a/src/components/@molecules/VerificationBadge/components/VerificationBadgeTooltipContent.tsx b/src/components/@molecules/VerificationBadge/components/VerificationBadgeTooltipContent.tsx deleted file mode 100644 index 49f568497..000000000 --- a/src/components/@molecules/VerificationBadge/components/VerificationBadgeTooltipContent.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import styled, { css } from 'styled-components' -import { match } from 'ts-pattern' - -import { Colors, OutlinkSVG, Typography } from '@ensdomains/thorin' - -import DentitySVG from '@app/assets/verification/Dentity.svg' -import VerifiedRecordSVG from '@app/assets/VerifiedRecord.svg' -import { VerificationProtocol } from '@app/transaction-flow/input/VerifyProfile/VerifyProfile-flow' - -type Props = { verifiedBy?: VerificationProtocol } - -const Container = styled.div<{ $color: Colors }>( - ({ theme, $color }) => css` - display: flex; - align-items: center; - width: 100%; - gap: ${theme.space['1']}; - - svg { - width: ${theme.space['5']}; - height: ${theme.space['5']}; - display: block; - } - - ${$color && `color: ${theme.colors[$color]};`} - `, -) - -const Content = styled.div( - ({ theme }) => css` - display: flex; - align-items: center; - gap: ${theme.space['1']}; - white-space: nowrap; - - svg { - width: ${theme.space['3']}; - height: ${theme.space['3']}; - display: block; - } - `, -) - -export const VerificationBadgeTooltipContent = ({ verifiedBy }: Props) => { - return match(verifiedBy) - .with('dentity', () => ( - - - - - Verified by Dentity - - - - - )) - .otherwise(() => ( - - - - - Personhood verified - - - - )) -} diff --git a/src/utils/verification/recordKeyForVerificationProtocol.ts b/src/utils/verification/recordKeyForVerificationProtocol.ts deleted file mode 100644 index d29e44567..000000000 --- a/src/utils/verification/recordKeyForVerificationProtocol.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { VerificationProtocol } from '@app/transaction-flow/input/VerifyProfile/VerifyProfile-flow' - -export const recordKeyForVerificationProtocol = (protocol: VerificationProtocol) => { - if (protocol === 'dentity') return 'com.dentity' - throw new Error(`Unknown verification protocol: ${protocol}`) -}