From bd51d198e4b3e5d7d28aa59e6facd0caee4f07ea Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Mon, 20 Jan 2025 12:13:24 +0300 Subject: [PATCH] fix --- src/hooks/useSiweAuth.tsx | 2 +- src/pages/Identifiers/Attestation/Attestation.tsx | 12 ++++++------ tsconfig.app.json | 4 +++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/hooks/useSiweAuth.tsx b/src/hooks/useSiweAuth.tsx index b2ed870..7f2d65e 100644 --- a/src/hooks/useSiweAuth.tsx +++ b/src/hooks/useSiweAuth.tsx @@ -33,7 +33,7 @@ const useSiweAuth = () => { statement: 'Sign in with Ethereum to the app.', }); }, - getMessageBody: ({ message }) => message, + // getMessageBody: ({ message }) => message, verify: async ({ message, signature }) => { const { data } = await api.post('auth/siwe/verify', { message, diff --git a/src/pages/Identifiers/Attestation/Attestation.tsx b/src/pages/Identifiers/Attestation/Attestation.tsx index b4712ad..f6f2fa2 100644 --- a/src/pages/Identifiers/Attestation/Attestation.tsx +++ b/src/pages/Identifiers/Attestation/Attestation.tsx @@ -2,10 +2,10 @@ import { useState } from 'react'; import { Alert, AlertTitle, Paper } from '@mui/material'; import { useParams } from 'react-router-dom'; -// import DiscourseStepFour from '../../../components/pages/Attestations/DiscourseStepFour'; -// import DiscourseStepOne from '../../../components/pages/Attestations/DiscourseStepOne'; -// import DiscourseStepThree from '../../../components/pages/Attestations/DiscourseStepThree'; -// import DiscourseStepTwo from '../../../components/pages/Attestations/DiscourseStepTwo'; +import DiscourseStepFour from '../../../components/pages/Attestations/DiscourseStepFour'; +import DiscourseStepOne from '../../../components/pages/Attestations/DiscourseStepOne'; +import DiscourseStepThree from '../../../components/pages/Attestations/DiscourseStepThree'; +import DiscourseStepTwo from '../../../components/pages/Attestations/DiscourseStepTwo'; import StepOne from '../../../components/pages/Attestations/StepOne'; import StepThree from '../../../components/pages/Attestations/StepThree'; import StepTwo from '../../../components/pages/Attestations/StepTwo'; @@ -51,7 +51,7 @@ export default function Attestation() { return ( <> - {/* )} - */} + ); } diff --git a/tsconfig.app.json b/tsconfig.app.json index 4ac6c48..e555dc6 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -33,6 +33,8 @@ ".eslintrc.cjs", "src", "src/**/*.tsx", - "src/**/*.ts" + "src/**/*.ts", + "src/**/**/*.tsx", + "src/**/**/*.ts" ] }