mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(ui): Simplify composable message handling in dialog (#4573)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
5d198c7407
commit
d374e768b2
1 changed files with 1 additions and 8 deletions
|
|
@ -207,14 +207,7 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
|
|||
message = message,
|
||||
html = state.html,
|
||||
icon = state.icon,
|
||||
text = {
|
||||
val composableMsg = state.composableMessage
|
||||
if (composableMsg != null) {
|
||||
composableMsg.Content()
|
||||
} else {
|
||||
// message is handled internally by MeshtasticDialog
|
||||
}
|
||||
},
|
||||
text = state.composableMessage?.let { msg -> { msg.Content() } },
|
||||
confirmText = confirmText,
|
||||
onConfirm = state.onConfirm,
|
||||
dismissText = dismissText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue