From 4022b6d1f32cec2974114c2979d65731756b2962 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Thu, 22 Jan 2026 14:42:04 -0500 Subject: [PATCH] chore: Replace TextButton with UiButton.secondary in settings actions Updated the log out and cancel actions in SettingsActions to use UiButton.secondary instead of TextButton for consistency with the UI component library. --- .../client_settings_page/settings_actions.dart | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart b/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart index b906f258..209933aa 100644 --- a/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart +++ b/apps/mobile/packages/features/client/settings/lib/src/presentation/widgets/client_settings_page/settings_actions.dart @@ -69,26 +69,20 @@ class SettingsActions extends StatelessWidget { ), actions: [ // Log out button - TextButton( + UiButton.secondary( + text: t.client_settings.profile.log_out, onPressed: () { Modular.to.pop(); BlocProvider.of( context, ).add(const ClientSettingsSignOutRequested()); }, - child: Text( - t.client_settings.profile.log_out, - style: UiTypography.buttonM.textSecondary, - ), ), // Cancel button - TextButton( + UiButton.secondary( + text: t.common.cancel, onPressed: () => Modular.to.pop(), - child: Text( - t.common.cancel, - style: UiTypography.buttonM.textPrimary, - ), ), ], ),