@@ -91,6 +91,22 @@ fun NewTransactionSheetView(
9191 modifier : Modifier = Modifier ,
9292) {
9393 Box (modifier = modifier) {
94+ val composition by rememberLottieComposition(
95+ if (details.type == NewTransactionSheetType .ONCHAIN ) {
96+ LottieCompositionSpec .RawRes (R .raw.confetti_orange)
97+ } else {
98+ LottieCompositionSpec .RawRes (R .raw.confetti_purple)
99+ }
100+ )
101+ LottieAnimation (
102+ composition = composition,
103+ contentScale = ContentScale .Crop ,
104+ iterations = 100 ,
105+ modifier = Modifier
106+ .fillMaxSize()
107+ .testTag(" confetti_animation" )
108+ )
109+
94110 if (details.direction == NewTransactionSheetDirection .RECEIVED ) {
95111 Image (
96112 painter = painterResource(R .drawable.coin_stack_5),
@@ -100,6 +116,7 @@ fun NewTransactionSheetView(
100116 .fillMaxWidth()
101117 .testTag(" transaction_received_image" )
102118 .align(Alignment .BottomEnd )
119+ .padding(bottom = 32 .dp)
103120 )
104121 } else {
105122 Image (
@@ -114,22 +131,6 @@ fun NewTransactionSheetView(
114131 )
115132 }
116133
117- val composition by rememberLottieComposition(
118- if (details.type == NewTransactionSheetType .ONCHAIN ) {
119- LottieCompositionSpec .RawRes (R .raw.confetti_orange)
120- } else {
121- LottieCompositionSpec .RawRes (R .raw.confetti_purple)
122- }
123- )
124- LottieAnimation (
125- composition = composition,
126- contentScale = ContentScale .Crop ,
127- iterations = 100 ,
128- modifier = Modifier
129- .fillMaxSize()
130- .testTag(" confetti_animation" )
131- )
132-
133134 Column (
134135 horizontalAlignment = Alignment .CenterHorizontally ,
135136 modifier = Modifier
@@ -155,7 +156,7 @@ fun NewTransactionSheetView(
155156
156157 BalanceHeaderView (
157158 sats = details.sats,
158- onClick = { onDetailClick } ,
159+ onClick = onDetailClick,
159160 modifier = Modifier
160161 .fillMaxWidth()
161162 .testTag(" ReceivedTransaction" )
0 commit comments