From: Lanius Trolling Date: Sat, 27 Jan 2024 15:36:20 +0000 (-0500) Subject: Remove unnecessary function X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=093f000c936f94c7f8d72e7fcfdc2d51b0caad4f;p=factbooks Remove unnecessary function --- diff --git a/src/mapMain/kotlin/info/mechyrdia/mapviewer/modal.kt b/src/mapMain/kotlin/info/mechyrdia/mapviewer/modal.kt index e5424d4..b729847 100644 --- a/src/mapMain/kotlin/info/mechyrdia/mapviewer/modal.kt +++ b/src/mapMain/kotlin/info/mechyrdia/mapviewer/modal.kt @@ -43,17 +43,3 @@ suspend fun showLoadingScreen(label: String = "Loading...", loader: suspend loader().also { showingBox.cancelAndJoin() } } } - -suspend fun showAlertScreen(alertHeader: String, alertBody: String, alertDismiss: String) { - showModalBox { dismiss -> - h1 { +alertHeader } - p { - style = "max-height:50vh;overflow-y:auto" - +alertBody - } - button { - onClickFunction = { _ -> dismiss(Unit) } - +alertDismiss - } - } -}