update Mzansi Directory nav pt2

This commit is contained in:
2025-08-21 15:01:41 +02:00
parent 5b2f253f29
commit 94ae6dd5d2

View File

@@ -94,23 +94,13 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
widget.business.rating, widget.business.rating,
) )
.then((statusCode) { .then((statusCode) {
Navigator.of(context).pop(); //Remove loading dialog context.pop(); //Remove loading dialog
Navigator.of(context).pop(); //Remove delete dialog context.pop(); //Remove delete dialog
if (statusCode == 200) { if (statusCode == 200) {
Navigator.of(context).pop(); //Remove window context.pop(); //Remove window
Navigator.of(context).pop(); //Remove profile successPopUp(
Navigator.of(context).pop(); //Remove directory
Navigator.of(context).pushNamed(
'/mzansi-directory',
arguments: MzansiDirectoryArguments(
personalSearch: false, // personalSearch
startSearchText: widget.business.Name,
),
);
MihAlertServices().successAlert(
"Successfully Deleted Review!", "Successfully Deleted Review!",
"Your review has successfully been delete and will no longer appear under the business.", "Your review has successfully been delete and will no longer appear under the business.",
context,
); );
} else { } else {
MihAlertServices().errorAlert( MihAlertServices().errorAlert(
@@ -137,7 +127,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
MihButton( MihButton(
width: 300, width: 300,
onPressed: () { onPressed: () {
Navigator.of(context).pop(); context.pop();
}, },
buttonColor: MihColors.getGreenColor( buttonColor: MihColors.getGreenColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),