Revert "refactor: tracking screen to lambda code"

This reverts commit 9df53d50c0.
pull/1472/head
kwakjoohyeong 4 months ago
parent 9df53d50c0
commit 4a5cdcb0d2

@ -114,7 +114,6 @@ class InterestsScreenTest {
uiState = uiState,
followTopic = { _, _ -> },
onTopicClick = {},
trackScreenView = {},
)
}
}

@ -52,9 +52,6 @@ fun InterestsRoute(
},
highlightSelectedTopic = highlightSelectedTopic,
modifier = modifier,
trackScreenView = {
TrackScreenViewEvent(screenName = "Interests")
},
)
}
@ -65,7 +62,6 @@ internal fun InterestsScreen(
onTopicClick: (String) -> Unit,
modifier: Modifier = Modifier,
highlightSelectedTopic: Boolean = false,
trackScreenView: @Composable () -> Unit,
) {
Column(
modifier = modifier,
@ -91,7 +87,7 @@ internal fun InterestsScreen(
is InterestsUiState.Empty -> InterestsEmptyScreen()
}
}
trackScreenView()
TrackScreenViewEvent(screenName = "Interests")
}
@Composable
@ -114,7 +110,6 @@ fun InterestsScreenPopulated(
),
followTopic = { _, _ -> },
onTopicClick = {},
trackScreenView = {},
)
}
}
@ -129,7 +124,6 @@ fun InterestsScreenLoading() {
uiState = InterestsUiState.Loading,
followTopic = { _, _ -> },
onTopicClick = {},
trackScreenView = {},
)
}
}
@ -144,7 +138,6 @@ fun InterestsScreenEmpty() {
uiState = InterestsUiState.Empty,
followTopic = { _, _ -> },
onTopicClick = {},
trackScreenView = {},
)
}
}

Loading…
Cancel
Save