Skip to content

Commit

Permalink
feat: Remove KYC button from ai result page screen #3174
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Dec 9, 2024
1 parent fd69e65 commit 1afc1b4
Showing 1 changed file with 24 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,34 +237,30 @@ class FailureWidget extends StatelessWidget {
);
},
),
const SizedBox(
height: Sizes.spaceNormal,
),
MyElevatedButton(
text: l10n.kyc,
verticalSpacing: 16,
borderRadius: Sizes.largeRadius,
onPressed: () async {
await securityCheck(
context: context,
title: l10n.typeYourPINCodeToAuthenticate,
localAuthApi: LocalAuthApi(),
onSuccess: () {
context
.read<KycVerificationCubit>()
.startKycVerifcation(vcType: KycVcType.verifiableId);
},
);
await Navigator.pushAndRemoveUntil<void>(
context,
DashboardPage.route(),
(Route<dynamic> route) => route.isFirst,
);
},
),
const SizedBox(
height: Sizes.spaceNormal,
),
const SizedBox(height: Sizes.spaceNormal),
// MyElevatedButton(
// text: l10n.kyc,
// verticalSpacing: 16,
// borderRadius: Sizes.largeRadius,
// onPressed: () async {
// await securityCheck(
// context: context,
// title: l10n.typeYourPINCodeToAuthenticate,
// localAuthApi: LocalAuthApi(),
// onSuccess: () {
// context
// .read<KycVerificationCubit>()
// .startKycVerifcation(vcType: KycVcType.verifiableId);
// },
// );
// await Navigator.pushAndRemoveUntil<void>(
// context,
// DashboardPage.route(),
// (Route<dynamic> route) => route.isFirst,
// );
// },
// ),
// const SizedBox(height: Sizes.spaceNormal),
MyElevatedButton(
text: l10n.decline,
verticalSpacing: 16,
Expand Down

0 comments on commit 1afc1b4

Please sign in to comment.