Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-25 16:00:45 +02:00
parent c43432b1ca
commit 1d68916cb7
7 changed files with 57 additions and 32 deletions

View file

@ -1,9 +1,6 @@
package com.tangem.features.commonfeatures.impl.addtoportfolio
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.togetherWith
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
@ -63,18 +60,12 @@ internal fun AddToPortfolioBottomSheetV2(
}
},
footer = {
AnimatedContent(
targetState = contentStack.value.active.configuration,
transitionSpec = { fadeIn() togetherWith fadeOut() },
label = "Footer Animation",
) { route ->
AddToPortfolioBottomSheetFooter(
currentRoute = route,
userPortfolioState = userPortfolioState,
onBack = onBack,
onAddFromUserPortfolioClick = onAddFromUserPortfolioClick,
)
}
AddToPortfolioBottomSheetFooter(
currentRoute = contentStack.value.active.configuration,
userPortfolioState = userPortfolioState,
onBack = onBack,
onAddFromUserPortfolioClick = onAddFromUserPortfolioClick,
)
},
)
}