Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

1 change: 1 addition & 0 deletions android/features/add_asset/presents/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ dependencies {
implementation(project(":ui"))
implementation(project(":features:add_asset:viewmodels"))
implementation(project(":features:recipient:viewmodels"))
implementation(project(":features:recipient:presents"))

implementation(libs.hilt.android)
implementation(libs.hilt.navigation.compose)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import com.gemwallet.android.ui.theme.space24
import com.gemwallet.android.ui.theme.defaultPadding
import com.gemwallet.android.ui.theme.sceneContentPadding
import com.gemwallet.android.features.add_asset.viewmodels.models.TokenSearchState
import com.gemwallet.android.features.recipient.presents.components.AddressChainField
import com.wallet.core.primitives.Asset
import com.wallet.core.primitives.BlockExplorerLink
import uniffi.gemstone.DocsUrl
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.CheckCircle
import androidx.compose.material.icons.filled.Clear
import androidx.compose.material.icons.filled.ContentPaste
import androidx.compose.material.icons.filled.Error
import androidx.compose.material.icons.filled.QrCodeScanner
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand All @@ -31,6 +27,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.gemwallet.android.features.recipient.viewmodel.AddressChainViewModel
import com.gemwallet.android.ui.components.GemTextField
import com.gemwallet.android.ui.components.clipboard.getPlainText
import com.gemwallet.android.ui.components.fields.TransferTextFieldActions
import com.gemwallet.android.ui.components.progress.CircularProgressIndicator16
import com.gemwallet.android.ui.theme.paddingHalfSmall
import com.gemwallet.android.ui.theme.paddingSmall
Expand Down Expand Up @@ -129,42 +126,3 @@ fun ColumnScope.AddressChainField(
}
}
}

@Composable
fun TransferTextFieldActions(
value: String,
paste: (() -> Unit)? = null,
qrScanner: (() -> Unit)? = null,
onClean: () -> Unit
) {
if (value.isNotEmpty()) {
IconButton(onClick = onClean) {
Icon(
imageVector = Icons.Default.Clear,
contentDescription = "clear",
tint = MaterialTheme.colorScheme.onSurface,
)
}
return
}
Row {
if (paste != null) {
IconButton(onClick = paste) {
Icon(
imageVector = Icons.Default.ContentPaste,
contentDescription = "paste",
tint = MaterialTheme.colorScheme.onSurface,
)
}
}
if (qrScanner != null) {
IconButton(onClick = qrScanner) {
Icon(
imageVector = Icons.Default.QrCodeScanner,
contentDescription = "scan_address",
tint = MaterialTheme.colorScheme.onSurface,
)
}
}
}
}
Loading