From 38974a82b6cdf29fdbbe3ebd596ed1388f7aea40 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Fri, 28 Mar 2025 09:20:09 +0200 Subject: [PATCH] update nav podst update --- .../package_tools/mih_business_profile.dart | 10 +++++----- .../package_tools/mih_personal_profile.dart | 14 +++++++++++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_profile.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_profile.dart index 9b2b1f07..c60c319d 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_profile.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_profile.dart @@ -122,12 +122,12 @@ class _MihBusinessProfileState extends State { } Navigator.of(context).pop(); Navigator.of(context).pop(); + Navigator.of(context).pop(); Navigator.of(context).pushNamed( - '/business-profile/manage', - arguments: BusinessArguments( - widget.arguments.signedInUser, - widget.arguments.businessUser, - widget.arguments.business, + '/', + arguments: AuthArguments( + false, + false, ), ); String message = diff --git a/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile.dart b/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile.dart index 2e9d9b83..a45b0a5b 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile.dart @@ -144,12 +144,20 @@ class _MihPersonalProfileState extends State { //print("Here4"); //print(response.statusCode); if (response.statusCode == 200) { + Navigator.of(context).pop(); Navigator.of(context).pop(); Navigator.of(context).pushNamed( - '/user-profile', - arguments: AppProfileUpdateArguments( - widget.arguments.signedInUser, widget.arguments.propicFile), + '/', + arguments: AuthArguments( + true, + false, + ), ); + // Navigator.of(context).pushNamed( + // '/mzansi-profile', + // arguments: AppProfileUpdateArguments( + // widget.arguments.signedInUser, widget.arguments.propicFile), + // ); String message = "${widget.arguments.signedInUser.email}'s information has been updated successfully!"; successPopUp(message);