mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
fix: use CommonsR for napplet_untitled after resource move to commons
The string moved to commons/src/androidMain/res/values/strings.xml in the upstream merge; update the two remaining call sites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013hTFpoExYYLYEGGtXBx6ZT
This commit is contained in:
+2
-1
@@ -80,6 +80,7 @@ import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
import com.vitorpamplona.amethyst.commons.R as CommonsR
|
||||
|
||||
private data class ConnectedAppDetailState(
|
||||
val title: String,
|
||||
@@ -99,7 +100,7 @@ fun ConnectedAppDetailScreen(
|
||||
val context = LocalContext.current
|
||||
val capabilityLedger = remember { NappletPermissionLedger(DataStoreNappletPermissionStore(context)) }
|
||||
val signerLedger = remember { NostrSignerPermissionLedger(DataStoreNostrSignerPermissionStore(context)) }
|
||||
val untitled = stringResource(R.string.napplet_untitled)
|
||||
val untitled = stringResource(CommonsR.string.napplet_untitled)
|
||||
|
||||
var state by remember { mutableStateOf<ConnectedAppDetailState?>(null) }
|
||||
var reload by remember { mutableIntStateOf(0) }
|
||||
|
||||
+2
-1
@@ -69,6 +69,7 @@ import com.vitorpamplona.amethyst.ui.navigation.topbars.TopBarWithBackButton
|
||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
import com.vitorpamplona.amethyst.commons.R as CommonsR
|
||||
|
||||
private data class ConnectedAppEntry(
|
||||
val coordinate: String,
|
||||
@@ -87,7 +88,7 @@ fun ConnectedAppsScreen(
|
||||
val context = LocalContext.current
|
||||
val capabilityLedger = remember { NappletPermissionLedger(DataStoreNappletPermissionStore(context)) }
|
||||
val signerLedger = remember { NostrSignerPermissionLedger(DataStoreNostrSignerPermissionStore(context)) }
|
||||
val untitled = stringResource(R.string.napplet_untitled)
|
||||
val untitled = stringResource(CommonsR.string.napplet_untitled)
|
||||
|
||||
var items by remember { mutableStateOf<List<ConnectedAppEntry>?>(null) }
|
||||
var reload by remember { mutableIntStateOf(0) }
|
||||
|
||||
Reference in New Issue
Block a user