add AlertContent, add RouteNavigator
This commit is contained in:
@@ -30,9 +30,9 @@ import ru.shadowsparky.koin
|
||||
import ru.shadowsparky.ui.hideElementById
|
||||
import ru.shadowsparky.ui.hookPageVisibility
|
||||
import ru.shadowsparky.vbox.shared.presentation.Nav
|
||||
import ru.shadowsparky.vbox.shared.presentation.RootComponent
|
||||
import ru.shadowsparky.vbox.shared.presentation.RootFactory
|
||||
import ru.shadowsparky.vbox.shared.presentation.UrlRoutes
|
||||
import ru.shadowsparky.vbox.shared.presentation.VBoxRootComponent
|
||||
import ru.shadowsparky.vbox.shared.presentation.nav.Route
|
||||
|
||||
@KoinApplication
|
||||
@@ -67,9 +67,9 @@ fun mainInternal() {
|
||||
|
||||
val composeRoot = document.getElementById("compose-root") as HTMLElement
|
||||
|
||||
var rootRef: RootComponent? = null
|
||||
var rootRef: VBoxRootComponent? = null
|
||||
|
||||
val root: RootComponent = withWebHistory { stateKeeper: StateKeeper, deepLinkUrl: String? ->
|
||||
val root: VBoxRootComponent = withWebHistory { stateKeeper: StateKeeper, deepLinkUrl: String? ->
|
||||
if (rootRef == null) {
|
||||
rootRef = createRoot(lifecycle, stateKeeper, deepLinkUrl)
|
||||
}
|
||||
@@ -103,7 +103,7 @@ private fun createRoot(
|
||||
lifecycle: LifecycleRegistry,
|
||||
stateKeeper: StateKeeper,
|
||||
deepLinkUrl: String?,
|
||||
): RootComponent {
|
||||
): VBoxRootComponent {
|
||||
val ctx = DefaultComponentContext(
|
||||
lifecycle = lifecycle, stateKeeper = stateKeeper
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user