refactor: update AttireRepositoryImpl to use constructor injection, reorganize profile sections by moving documents and adding certificates, and introduce new UI icons.
This commit is contained in:
@@ -21,7 +21,9 @@ class ComplianceSection extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final TranslationsStaffProfileEn i18n = Translations.of(context).staff.profile;
|
||||
final TranslationsStaffProfileEn i18n = Translations.of(
|
||||
context,
|
||||
).staff.profile;
|
||||
|
||||
return BlocBuilder<ProfileCubit, ProfileState>(
|
||||
builder: (BuildContext context, ProfileState state) {
|
||||
@@ -33,11 +35,21 @@ class ComplianceSection extends StatelessWidget {
|
||||
crossAxisCount: 3,
|
||||
children: <Widget>[
|
||||
ProfileMenuItem(
|
||||
icon: UiIcons.file,
|
||||
icon: UiIcons.circleDollar,
|
||||
label: i18n.menu_items.tax_forms,
|
||||
completed: state.taxFormsComplete,
|
||||
onTap: () => Modular.to.toTaxForms(),
|
||||
),
|
||||
ProfileMenuItem(
|
||||
icon: UiIcons.file,
|
||||
label: i18n.menu_items.documents,
|
||||
onTap: () => Modular.to.toDocuments(),
|
||||
),
|
||||
ProfileMenuItem(
|
||||
icon: UiIcons.certificate,
|
||||
label: i18n.menu_items.certificates,
|
||||
onTap: () => Modular.to.toCertificates(),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -56,11 +56,6 @@ class OnboardingSection extends StatelessWidget {
|
||||
label: i18n.menu_items.attire,
|
||||
onTap: () => Modular.to.toAttire(),
|
||||
),
|
||||
ProfileMenuItem(
|
||||
icon: UiIcons.file,
|
||||
label: i18n.menu_items.documents,
|
||||
onTap: () => Modular.to.toDocuments(),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user