Skip to content

Commit

Permalink
[FEAT/#294] search quest scrap amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Oct 22, 2024
1 parent dbad766 commit f46da5a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import androidx.lifecycle.compose.LocalLifecycleOwner
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx.navigation.NavHostController
import com.terning.core.analytics.EventType
import com.terning.core.analytics.LocalTracker
import com.terning.core.designsystem.component.bottomsheet.SortingBottomSheet
import com.terning.core.designsystem.component.button.SortingButton
import com.terning.core.designsystem.component.item.InternItemWithShadow
Expand Down Expand Up @@ -168,6 +170,8 @@ fun SearchProcessScreen(
val focusManager = LocalFocusManager.current
val currentSortBy = remember { mutableIntStateOf(state.currentSortBy) }

val amplitudeTracker = LocalTracker.current

LaunchedEffect(Unit) {
focusRequester.requestFocus()
}
Expand Down Expand Up @@ -267,7 +271,10 @@ fun SearchProcessScreen(
intern = internSearchResultData[index],
navigateToIntern = navigateToIntern,
onScrapButtonClicked = {

amplitudeTracker.track(
type = EventType.CLICK,
name = "quest_scrap"
)
with(internSearchResultData[index]) {
onScrapButtonClicked(this)
}
Expand Down

0 comments on commit f46da5a

Please sign in to comment.