Skip to content

Commit 1bb11c7

Browse files
committed
refactor: remove unused scope
1 parent 04a00cf commit 1bb11c7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/src/main/java/to/bitkit/ui/screens/wallets/send/SendRecipientScreen.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import androidx.compose.runtime.LaunchedEffect
3232
import androidx.compose.runtime.getValue
3333
import androidx.compose.runtime.mutableStateOf
3434
import androidx.compose.runtime.remember
35-
import androidx.compose.runtime.rememberCoroutineScope
3635
import androidx.compose.runtime.setValue
3736
import androidx.compose.ui.Alignment
3837
import androidx.compose.ui.Modifier
@@ -57,7 +56,6 @@ import com.google.mlkit.vision.barcode.common.Barcode
5756
import com.google.mlkit.vision.common.InputImage
5857
import kotlinx.coroutines.Dispatchers
5958
import kotlinx.coroutines.delay
60-
import kotlinx.coroutines.launch
6159
import kotlinx.coroutines.withContext
6260
import to.bitkit.R
6361
import to.bitkit.ext.startActivityAppSettings
@@ -90,7 +88,6 @@ fun SendRecipientScreen(
9088
onEvent: (SendEvent) -> Unit,
9189
modifier: Modifier = Modifier,
9290
) {
93-
val scope = rememberCoroutineScope()
9491
val app = appViewModel
9592

9693
// Context & lifecycle
@@ -261,9 +258,7 @@ fun SendRecipientScreen(
261258
}
262259
},
263260
onClickContact = {
264-
scope.launch {
265-
app?.toast(Exception("Coming soon: Contact"))
266-
}
261+
app?.toast(Exception("Coming soon: Contact"))
267262
},
268263
onClickPaste = { onEvent(SendEvent.Paste) },
269264
onClickManual = { onEvent(SendEvent.EnterManually) },

0 commit comments

Comments
 (0)