Refactor staff profile management to remove livePhoto references and update repository methods for current user authentication
This commit is contained in:
@@ -79,7 +79,6 @@ class PersonalInfoRepositoryImpl implements PersonalInfoRepositoryInterface {
|
||||
status: StaffStatus.active, // TODO: Map from actual status field when available
|
||||
address: dto.addres,
|
||||
avatar: dto.photoUrl,
|
||||
livePhoto: null, // TODO: Map when available in data schema
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,6 @@ class PersonalInfoRepositoryMock implements PersonalInfoRepositoryInterface {
|
||||
status: StaffStatus.active,
|
||||
address: 'Montreal, Quebec',
|
||||
avatar: null,
|
||||
livePhoto: null,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,6 @@ class PersonalInfoBloc extends Bloc<PersonalInfoEvent, PersonalInfoState>
|
||||
status: staff.status,
|
||||
address: staff.address,
|
||||
avatar: staff.avatar,
|
||||
livePhoto: staff.livePhoto,
|
||||
);
|
||||
case 'address':
|
||||
return Staff(
|
||||
@@ -100,7 +99,6 @@ class PersonalInfoBloc extends Bloc<PersonalInfoEvent, PersonalInfoState>
|
||||
status: staff.status,
|
||||
address: value,
|
||||
avatar: staff.avatar,
|
||||
livePhoto: staff.livePhoto,
|
||||
);
|
||||
default:
|
||||
return staff;
|
||||
|
||||
Reference in New Issue
Block a user