update home to MIHHOMLegacy

This commit is contained in:
2025-03-25 13:37:13 +02:00
parent 9be15edad2
commit c18702c778
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ import '../../mih_objects/notification.dart';
import '../test/test.dart';
// ignore: must_be_immutable
class MIHHome extends StatefulWidget {
class MIHHomeLegacy extends StatefulWidget {
final AppUser signedInUser;
final BusinessUser? businessUser;
final Business? business;
@@ -50,7 +50,7 @@ class MIHHome extends StatefulWidget {
final bool isBusinessUserNew;
final bool isDevActive;
bool personalSelected;
MIHHome({
MIHHomeLegacy({
super.key,
required this.signedInUser,
required this.businessUser,
@@ -66,10 +66,10 @@ class MIHHome extends StatefulWidget {
});
@override
State<MIHHome> createState() => _MIHHomeState();
State<MIHHomeLegacy> createState() => _MIHHomeLegacyState();
}
class _MIHHomeState extends State<MIHHome> {
class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
final proPicController = TextEditingController();
final TextEditingController searchController = TextEditingController();
final FocusNode _focusNode = FocusNode();

View File

@@ -242,7 +242,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
builder: (BuildContext context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.hasData) {
return MIHHome(
return MIHHomeLegacy(
signedInUser: snapshot.requireData.signedInUser,
businessUser: snapshot.data!.businessUser,
business: snapshot.data!.business,