auth to server-V42
This commit is contained in:
parent
a43a605c63
commit
7372280ef2
1 changed files with 5 additions and 2 deletions
|
|
@ -275,6 +275,9 @@ fun Loaded_setting_profile_page(
|
||||||
if (showDialog) {
|
if (showDialog) {
|
||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = { showDialog = false },
|
onDismissRequest = { showDialog = false },
|
||||||
|
containerColor = MaterialTheme.colorScheme.primary,
|
||||||
|
titleContentColor = MaterialTheme.colorScheme.secondary,
|
||||||
|
textContentColor = MaterialTheme.colorScheme.onBackground,
|
||||||
title = { Text("Edit Bio") },
|
title = { Text("Edit Bio") },
|
||||||
text = {
|
text = {
|
||||||
TextField(
|
TextField(
|
||||||
|
|
@ -292,12 +295,12 @@ fun Loaded_setting_profile_page(
|
||||||
viewModel.updateBio(tempBio) // 呼叫你寫好的 API 邏輯
|
viewModel.updateBio(tempBio) // 呼叫你寫好的 API 邏輯
|
||||||
showDialog = false
|
showDialog = false
|
||||||
}) {
|
}) {
|
||||||
Text("Save", color = main_orange)
|
Text("Save", color = MaterialTheme.colorScheme.onBackground)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dismissButton = {
|
dismissButton = {
|
||||||
TextButton(onClick = { showDialog = false }) {
|
TextButton(onClick = { showDialog = false }) {
|
||||||
Text("Cancel", color = main_orange)
|
Text("Cancel", color = MaterialTheme.colorScheme.onBackground)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue