mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-09 04:18:11 +02:00
Fixes linting problems
This commit is contained in:
parent
6e1de6fd26
commit
8c34394d86
@ -100,7 +100,11 @@ fun RelayInformationDialog(
|
||||
),
|
||||
) {
|
||||
Surface {
|
||||
val color = mutableStateOf(Color.Transparent)
|
||||
val color =
|
||||
remember {
|
||||
mutableStateOf(Color.Transparent)
|
||||
}
|
||||
|
||||
val context = LocalContext.current
|
||||
|
||||
LazyColumn(
|
||||
|
@ -59,7 +59,6 @@ import com.vitorpamplona.amethyst.ui.theme.Size17Modifier
|
||||
import com.vitorpamplona.amethyst.ui.theme.StdVertSpacer
|
||||
import com.vitorpamplona.amethyst.ui.theme.noteComposeRelayBox
|
||||
import com.vitorpamplona.amethyst.ui.theme.placeholderText
|
||||
import kotlinx.coroutines.flow.map
|
||||
|
||||
@Composable
|
||||
fun RelayBadges(
|
||||
@ -125,13 +124,9 @@ fun WatchAndRenderRelay(
|
||||
val noteRelays by baseNote
|
||||
.flow()
|
||||
.relays.stateFlow
|
||||
.map {
|
||||
it.note.relays.getOrNull(relayIndex)
|
||||
}.collectAsStateWithLifecycle(
|
||||
baseNote.relays.getOrNull(relayIndex),
|
||||
)
|
||||
.collectAsStateWithLifecycle()
|
||||
|
||||
CrossfadeIfEnabled(targetState = noteRelays, label = "RenderRelay", modifier = Size17Modifier, accountViewModel = accountViewModel) {
|
||||
CrossfadeIfEnabled(targetState = noteRelays.note.relays.getOrNull(relayIndex), label = "RenderRelay", modifier = Size17Modifier, accountViewModel = accountViewModel) {
|
||||
if (it != null) {
|
||||
RenderRelay(it, accountViewModel, nav)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user