mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 21:47:07 +02:00
Fixed Alby NWC link
This commit is contained in:
@@ -218,7 +218,7 @@ fun UpdateZapAmountDialog(onClose: () -> Unit, nip47uri: String? = null, account
|
|||||||
val zapOptions = remember { zapTypes.map { it.second }.toImmutableList() }
|
val zapOptions = remember { zapTypes.map { it.second }.toImmutableList() }
|
||||||
val zapOptionExplainers = remember { zapTypes.map { it.third }.toImmutableList() }
|
val zapOptionExplainers = remember { zapTypes.map { it.third }.toImmutableList() }
|
||||||
|
|
||||||
LaunchedEffect(accountViewModel) {
|
LaunchedEffect(accountViewModel, nip47uri) {
|
||||||
postViewModel.load()
|
postViewModel.load()
|
||||||
if (nip47uri != null) {
|
if (nip47uri != null) {
|
||||||
try {
|
try {
|
||||||
@@ -384,6 +384,7 @@ fun UpdateZapAmountDialog(onClose: () -> Unit, nip47uri: String? = null, account
|
|||||||
)
|
)
|
||||||
|
|
||||||
IconButton(onClick = {
|
IconButton(onClick = {
|
||||||
|
onClose()
|
||||||
runCatching { uri.openUri("https://nwc.getalby.com/apps/new?c=Amethyst") }
|
runCatching { uri.openUri("https://nwc.getalby.com/apps/new?c=Amethyst") }
|
||||||
}) {
|
}) {
|
||||||
Icon(
|
Icon(
|
||||||
|
@@ -54,7 +54,7 @@ fun HomeScreen(
|
|||||||
nav: (String) -> Unit,
|
nav: (String) -> Unit,
|
||||||
nip47: String? = null
|
nip47: String? = null
|
||||||
) {
|
) {
|
||||||
var wantsToAddNip47 by remember { mutableStateOf(nip47) }
|
var wantsToAddNip47 by remember(nip47) { mutableStateOf(nip47) }
|
||||||
|
|
||||||
val pagerState = rememberForeverPagerState(key = PagerStateKeys.HOME_SCREEN)
|
val pagerState = rememberForeverPagerState(key = PagerStateKeys.HOME_SCREEN)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user