File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
feature/settings/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/settings Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ package com.google.samples.apps.nowinandroid.feature.settings
20
20
21
21
import android.content.Intent
22
22
import androidx.compose.animation.AnimatedVisibility
23
- import androidx.compose.foundation.clickable
24
23
import androidx.compose.foundation.layout.Arrangement
25
24
import androidx.compose.foundation.layout.Column
26
25
import androidx.compose.foundation.layout.ColumnScope
@@ -141,14 +140,16 @@ fun SettingsDialog(
141
140
TrackScreenViewEvent (screenName = " Settings" )
142
141
},
143
142
confirmButton = {
144
- Text (
145
- text = stringResource(string.feature_settings_dismiss_dialog_button_text),
146
- style = MaterialTheme .typography.labelLarge,
147
- color = MaterialTheme .colorScheme.primary,
148
- modifier = Modifier
149
- .padding(horizontal = 8 .dp)
150
- .clickable { onDismiss() },
151
- )
143
+ NiaTextButton (
144
+ onClick = onDismiss,
145
+ modifier = Modifier .padding(horizontal = 8 .dp),
146
+ ) {
147
+ Text (
148
+ text = stringResource(string.feature_settings_dismiss_dialog_button_text),
149
+ style = MaterialTheme .typography.labelLarge,
150
+ color = MaterialTheme .colorScheme.primary,
151
+ )
152
+ }
152
153
},
153
154
)
154
155
}
You can’t perform that action at this time.
0 commit comments