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.
This commit is contained in:
Achintha Isuru
2026-01-22 14:42:04 -05:00
parent 3d18395a09
commit 4022b6d1f3

View File

@@ -69,26 +69,20 @@ class SettingsActions extends StatelessWidget {
),
actions: <Widget>[
// Log out button
TextButton(
UiButton.secondary(
text: t.client_settings.profile.log_out,
onPressed: () {
Modular.to.pop();
BlocProvider.of<ClientSettingsBloc>(
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,
),
),
],
),