Skip to content

Commit

Permalink
refactor: use OutlinedButton in config dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Oct 1, 2023
1 parent 50e794e commit 1185e38
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.AlertDialog
import androidx.compose.material.Button
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.Card
import androidx.compose.material.ContentAlpha
Expand Down Expand Up @@ -673,16 +672,18 @@ private fun NavButton(@StringRes title: Int, enabled: Boolean, onClick: () -> Un
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.Center,
) {
Button(
OutlinedButton(
modifier = Modifier.weight(1f),
onClick = { showDialog = false }
onClick = { showDialog = false },
colors = ButtonDefaults.buttonColors(),
) { Text(stringResource(R.string.cancel)) }
Button(
OutlinedButton(
modifier = Modifier.weight(1f),
onClick = {
showDialog = false
onClick()
},
colors = ButtonDefaults.buttonColors(),
) { Text(stringResource(R.string.send)) }
}
}
Expand Down

0 comments on commit 1185e38

Please sign in to comment.