fixup! refactor(android): remove TwoPaneLayoutPostActions

This commit is contained in:
Harsh Shandilya 2024-11-01 00:09:30 +05:30
parent 4d260933c0
commit 4bac4c6404

View file

@ -21,7 +21,7 @@ fun PostActions(
context: Context, context: Context,
urlLauncher: UrlLauncher, urlLauncher: UrlLauncher,
viewModel: ClawViewModel, viewModel: ClawViewModel,
viewComments: (String) -> Unit, navigateToComments: (String) -> Unit,
): PostActions { ): PostActions {
return object : PostActions { return object : PostActions {
override fun viewPost(postId: String, postUrl: String, commentsUrl: String) { override fun viewPost(postId: String, postUrl: String, commentsUrl: String) {
@ -31,7 +31,7 @@ fun PostActions(
override fun viewComments(postId: String) { override fun viewComments(postId: String) {
viewModel.markPostAsRead(postId) viewModel.markPostAsRead(postId)
viewComments(postId) navigateToComments(postId)
} }
override fun viewCommentsPage(post: UIPost) { override fun viewCommentsPage(post: UIPost) {