diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreen.kt index 2bb1ad0f..59170143 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreen.kt @@ -21,11 +21,7 @@ class MangaScreen(private val mangaId: Long) : Screen { @Composable override fun Content() { val vm = viewModel { - instantiate( - ca.gosyer.jui.ui.manga.MangaScreenViewModel.Params( - mangaId - ) - ) + instantiate(MangaScreenViewModel.Params(mangaId)) } MangaScreenContent( diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreenViewModel.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreenViewModel.kt index 59aac2af..7ca7a841 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreenViewModel.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/manga/MangaScreenViewModel.kt @@ -46,7 +46,7 @@ class MangaScreenViewModel @Inject constructor( private val libraryHandler: LibraryInteractionHandler, uiPreferences: UiPreferences, contextWrapper: ContextWrapper, - private val params: ca.gosyer.jui.ui.manga.MangaScreenViewModel.Params, + private val params: Params, ) : ViewModel(contextWrapper) { private val _manga = MutableStateFlow(null) val manga = _manga.asStateFlow()