mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
cleaner code, change cascading ifs to when
This commit is contained in:
parent
f16143bec3
commit
6c3200a9cc
@ -483,21 +483,10 @@ private fun FullBleedNoteCompose(
|
||||
Spacer(modifier = Modifier.height(10.dp))
|
||||
|
||||
when (noteEvent) {
|
||||
is BadgeDefinitionEvent -> {
|
||||
BadgeDisplay(baseNote = baseNote)
|
||||
}
|
||||
|
||||
is LongTextNoteEvent -> {
|
||||
RenderLongFormHeaderForThread(noteEvent)
|
||||
}
|
||||
|
||||
is WikiNoteEvent -> {
|
||||
RenderWikiHeaderForThread(noteEvent, accountViewModel, nav)
|
||||
}
|
||||
|
||||
is ClassifiedsEvent -> {
|
||||
RenderClassifiedsReaderForThread(noteEvent, baseNote, accountViewModel, nav)
|
||||
}
|
||||
is BadgeDefinitionEvent -> BadgeDisplay(baseNote = baseNote)
|
||||
is LongTextNoteEvent -> RenderLongFormHeaderForThread(noteEvent)
|
||||
is WikiNoteEvent -> RenderWikiHeaderForThread(noteEvent, accountViewModel, nav)
|
||||
is ClassifiedsEvent -> RenderClassifiedsReaderForThread(noteEvent, baseNote, accountViewModel, nav)
|
||||
}
|
||||
|
||||
Row(
|
||||
|
Loading…
x
Reference in New Issue
Block a user