mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-10-13 19:21:49 +00:00
set up settings home screen navigation
This commit is contained in:
@@ -15,6 +15,13 @@ import net.newpipe.app.model.License
|
||||
@Serializable
|
||||
sealed interface Destination : NavKey {
|
||||
|
||||
@Serializable
|
||||
sealed interface Settings: Destination {
|
||||
|
||||
@Serializable
|
||||
data object Home : Settings
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data object About : Destination
|
||||
}
|
||||
|
||||
@@ -27,6 +27,10 @@ fun navModule() = module {
|
||||
navigation<Destination.About> {
|
||||
AboutScreen()
|
||||
}
|
||||
|
||||
navigation<Destination.Settings.Home> {
|
||||
SettingsHomeScreen()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
package net.newpipe.app.screen.settings
|
||||
|
||||
Reference in New Issue
Block a user