diff --git a/features/referral/presentation/build.gradle.kts b/features/referral/presentation/build.gradle.kts index 9483f8be34..1265ba6bec 100644 --- a/features/referral/presentation/build.gradle.kts +++ b/features/referral/presentation/build.gradle.kts @@ -24,6 +24,7 @@ dependencies { implementation(deps.androidx.appCompat) implementation(deps.androidx.fragment.ktx) implementation(deps.lifecycle.viewModel.ktx) + implementation(deps.androidx.activity.compose) /** Compose */ implementation(deps.compose.foundation) diff --git a/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ReferralScreen.kt b/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ReferralScreen.kt index 354d53a1e8..884bf1d869 100644 --- a/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ReferralScreen.kt +++ b/features/referral/presentation/src/main/java/com/tangem/feature/referral/ui/ReferralScreen.kt @@ -2,6 +2,7 @@ package com.tangem.feature.referral.ui import android.content.res.Configuration import android.content.res.Resources +import androidx.activity.compose.BackHandler import androidx.annotation.DrawableRes import androidx.compose.foundation.Image import androidx.compose.foundation.background @@ -52,6 +53,8 @@ internal fun ReferralScreen(stateHolder: ReferralStateHolder) { val snackbarHostState = remember(::SnackbarHostState) + BackHandler(onBack = stateHolder.headerState.onBackClicked) + Scaffold( topBar = { AppBarWithBackButton(