Skip to content

Commit 04d0689

Browse files
committed
fix build
1 parent 32b6fbd commit 04d0689

File tree

7 files changed

+25
-12
lines changed

7 files changed

+25
-12
lines changed

src/components/@molecules/VerificationBadge/components/VerificationBadgeAccountTooltipContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ type Props = { verifiers?: VerificationProtocol[] }
55
// Displays tooltip content for a verification badge showing the issuer.
66
// Currently returns null as no verification providers are configured.
77
// The infrastructure is designed to support multiple identity providers in the future.
8-
export const VerificationBadgeAccountTooltipContent = ({ verifiers: _verifiers }: Props) => {
8+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
9+
export const VerificationBadgeAccountTooltipContent = ({ verifiers }: Props) => {
910
// No verification providers are currently configured
1011
return null
1112
}

src/hooks/verification/useVerifiedRecords/useVerifiedRecords.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { QueryFunctionContext } from '@tanstack/react-query'
23
import { Hash } from 'viem'
34

@@ -43,7 +44,7 @@ export const parseVerificationRecord = (verificationRecord?: string): string[] =
4344
// Returns empty array since no verification providers are currently configured.
4445
// The infrastructure is preserved for future extensibility.
4546
export const getVerifiedRecords = async <TParams extends UseVerifiedRecordsParameters>({
46-
queryKey: [{ verificationsRecord: _verificationsRecord }],
47+
queryKey: [{ verificationsRecord }],
4748
}: QueryFunctionContext<QueryKey<TParams>>): Promise<UseVerifiedRecordsReturnType> => {
4849
// No verification providers are currently configured
4950
// Return empty array to maintain API compatibility

src/hooks/verification/useVerifiedRecords/utils/parseVerificationData/parseVerificationData.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { Hash } from 'viem'
23

34
export type ParseVerificationDataDependencies = {
@@ -16,8 +17,8 @@ export type VerifiedRecord = {
1617
// Currently returns empty array as no providers are configured.
1718
// The infrastructure is designed to support multiple identity providers in the future.
1819
export const parseVerificationData =
19-
(_dependencies: ParseVerificationDataDependencies) =>
20-
async (_data: unknown): Promise<VerifiedRecord[]> => {
20+
(dependencies: ParseVerificationDataDependencies) =>
21+
async (data: unknown): Promise<VerifiedRecord[]> => {
2122
// No verification providers are currently configured
2223
return []
2324
}

src/hooks/verification/useVerifiedRecords/utils/parseVerifiedCredential.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import type { VerifiableCredential } from '@app/types/verification'
23

34
import type { VerifiedRecord } from './parseVerificationData/parseVerificationData'
@@ -10,8 +11,8 @@ export type ParseVerifiedCredentialDependencies = {
1011
// Currently returns null as no verification providers are configured.
1112
// The infrastructure is designed to support multiple identity providers in the future.
1213
export const parseVerifiableCredential =
13-
(_dependencies: ParseVerifiedCredentialDependencies) =>
14-
async (_verifiableCredential?: VerifiableCredential): Promise<VerifiedRecord | null> => {
14+
(dependencies: ParseVerifiedCredentialDependencies) =>
15+
async (verifiableCredential?: VerifiableCredential): Promise<VerifiedRecord | null> => {
1516
// No verification providers are currently configured
1617
return null
1718
}

src/transaction-flow/input/VerifyProfile/VerifyProfile-flow.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ const VerifyProfile = ({ data: { name }, onDismiss }: Props) => {
4646
})
4747
.with({ isLoading: true }, () => <SearchViewLoadingView />)
4848
.otherwise(() => (
49-
<VerificationOptionsList
50-
verificationData={verificationData}
51-
onDismiss={onDismiss}
52-
/>
49+
<VerificationOptionsList verificationData={verificationData} onDismiss={onDismiss} />
5350
))}
5451
</>
5552
)

src/transaction-flow/input/VerifyProfile/views/VerificationOptionsList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { useTranslation } from 'react-i18next'
23
import styled, { css } from 'styled-components'
34

@@ -20,7 +21,7 @@ const IconWrapper = styled.div(
2021
)
2122

2223
export const VerificationOptionsList = ({
23-
verificationData: _verificationData,
24+
verificationData,
2425
onDismiss,
2526
}: {
2627
verificationData?: ReturnType<typeof useVerifiedRecords>['data']
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
import { VerificationProtocol } from '@app/transaction-flow/input/VerifyProfile/VerifyProfile-flow'
22

3+
export type VerifierData = {
4+
label: string
5+
value: string
6+
urlFormatter: string
7+
}
8+
39
// Returns display data for a verification protocol.
410
// Currently returns null as no verification providers are configured.
511
// The infrastructure is designed to support multiple identity providers in the future.
6-
export const getVerifierData = (_key: VerificationProtocol, _value: string) => {
12+
export const getVerifierData = (
13+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
14+
key: VerificationProtocol,
15+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
16+
value: string,
17+
): VerifierData | null => {
718
// No verification providers are currently configured
819
return null
920
}

0 commit comments

Comments
 (0)