add chat rule
This commit is contained in:
+12
@@ -27,6 +27,7 @@ object UrlRoutes {
|
||||
const val REGISTER = RouteIds.REGISTER
|
||||
const val EDIT_PASSWORD = RouteIds.EDIT_PASSWORD
|
||||
const val TAG_OVERVIEW = RouteIds.TAG_OVERVIEW
|
||||
const val CHAT = RouteIds.CHAT
|
||||
}
|
||||
|
||||
object Param {
|
||||
@@ -101,6 +102,17 @@ object UrlRoutes {
|
||||
}
|
||||
),
|
||||
|
||||
rule(
|
||||
match = { it is Route.Chat },
|
||||
build = {
|
||||
Built(
|
||||
"/${Seg.CHAT}",
|
||||
emptyMap()
|
||||
)
|
||||
},
|
||||
parse = { _, _ -> Route.Chat() }
|
||||
),
|
||||
|
||||
// "/search"
|
||||
rule(
|
||||
match = { it is Route.SearchVideos },
|
||||
|
||||
+1
-1
@@ -36,4 +36,4 @@ fun ChatScreen(component: ChatComponent, route: Route, onNavigate: (Route) -> Un
|
||||
scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(),
|
||||
content = { ChatContent(component, it, state) }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user