From 9692de6ae7c1b0c21e5d9526b9a6304bfca9914b Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Tue, 10 Sep 2024 16:24:15 +0200 Subject: [PATCH] if partial access remove manage team --- .../lib/components/homeTileGrid.dart | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Frontend/patient_manager/lib/components/homeTileGrid.dart b/Frontend/patient_manager/lib/components/homeTileGrid.dart index c5bf9334..c539ad09 100644 --- a/Frontend/patient_manager/lib/components/homeTileGrid.dart +++ b/Frontend/patient_manager/lib/components/homeTileGrid.dart @@ -132,27 +132,27 @@ class _HomeTileGridState extends State { } void setAppsBusiness(List tileList) { + tileList.add(HomeTile( + onTap: () { + Navigator.of(context).pushNamed( + '/business-profile', + arguments: BusinessArguments( + widget.signedInUser, + widget.businessUser, + widget.business, + ), + ); + }, + tileName: "Business Profile", + tileIcon: Icon( + Icons.business, + color: getSec(), + size: 200, + ), + p: getPrim(), + s: getSec(), + )); if (widget.businessUser!.access == "Full") { - tileList.add(HomeTile( - onTap: () { - Navigator.of(context).pushNamed( - '/business-profile', - arguments: BusinessArguments( - widget.signedInUser, - widget.businessUser, - widget.business, - ), - ); - }, - tileName: "Business Profile", - tileIcon: Icon( - Icons.business, - color: getSec(), - size: 200, - ), - p: getPrim(), - s: getSec(), - )); tileList.add(HomeTile( onTap: () { Navigator.of(context).pushNamed(