lint issues
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package swiss.qpq.gajumobile.ui.screens
|
||||
|
||||
import android.content.ClipData
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
@@ -24,16 +25,19 @@ import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalClipboardManager
|
||||
import androidx.compose.ui.platform.ClipEntry
|
||||
import androidx.compose.ui.platform.LocalClipboard
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.AnnotatedString
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import kotlinx.coroutines.launch
|
||||
import swiss.qpq.gajumobile.R
|
||||
import swiss.qpq.gajumobile.ui.components.GajuButton
|
||||
import swiss.qpq.gajumobile.ui.components.GajuHeader
|
||||
@@ -45,7 +49,8 @@ fun AccountNamingScreen(
|
||||
onAccountNamed: (String) -> Unit,
|
||||
onBack: (() -> Unit)? = null
|
||||
) {
|
||||
val clipboardManager = LocalClipboardManager.current
|
||||
val clipboardManager = LocalClipboard.current
|
||||
val scope = rememberCoroutineScope()
|
||||
var name by remember { mutableStateOf("") }
|
||||
var idExpanded by remember { mutableStateOf(false) }
|
||||
|
||||
@@ -105,7 +110,11 @@ fun AccountNamingScreen(
|
||||
}
|
||||
Spacer(modifier = Modifier.width(8.dp))
|
||||
IconButton(
|
||||
onClick = { clipboardManager.setText(AnnotatedString(publicKey)) },
|
||||
onClick = {
|
||||
scope.launch {
|
||||
clipboardManager.setClipEntry(ClipEntry(ClipData.newPlainText("Account ID", publicKey)))
|
||||
}
|
||||
},
|
||||
modifier = Modifier.size(24.dp)
|
||||
) {
|
||||
Icon(
|
||||
|
||||
@@ -106,6 +106,11 @@
|
||||
<string name="network_mainnet">メインネット</string>
|
||||
<string name="network_testnet">テストネット</string>
|
||||
|
||||
<!-- ExplorerScreen -->
|
||||
<string name="explorer_title">トランザクション</string>
|
||||
<string name="loading_groot">Grootを読み込み中</string>
|
||||
<string name="explorer_content_placeholder">Gajuエクスプローラーの内容</string>
|
||||
|
||||
<!-- SetupChoiceScreen -->
|
||||
<string name="create_account_button">アカウントを作成</string>
|
||||
<string name="recover_account_button">アカウントを復元</string>
|
||||
|
||||
@@ -107,6 +107,11 @@
|
||||
<string name="network_mainnet">Mainnet</string>
|
||||
<string name="network_testnet">Testnet</string>
|
||||
|
||||
<!-- ExplorerScreen -->
|
||||
<string name="explorer_title">Transactions</string>
|
||||
<string name="loading_groot">Loading Groot</string>
|
||||
<string name="explorer_content_placeholder">Gaju Explorer Content</string>
|
||||
|
||||
<!-- SetupChoiceScreen -->
|
||||
<string name="create_account_button">Create Account</string>
|
||||
<string name="recover_account_button">Recover Account</string>
|
||||
|
||||
Reference in New Issue
Block a user