From 24a3df1bf6a51f54c08e37c327e2097a4d1cee15 Mon Sep 17 00:00:00 2001 From: Adit Lal Date: Sat, 29 Jun 2024 19:13:27 +0530 Subject: [PATCH] Adds step 5 - dots connecting UI to domain --- composeApp/src/commonMain/kotlin/app/academy/model/Note.kt | 1 - composeApp/src/commonMain/kotlin/app/academy/ui/HomeScreen.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/app/academy/model/Note.kt b/composeApp/src/commonMain/kotlin/app/academy/model/Note.kt index bc6e3e5..bb46b9a 100644 --- a/composeApp/src/commonMain/kotlin/app/academy/model/Note.kt +++ b/composeApp/src/commonMain/kotlin/app/academy/model/Note.kt @@ -46,7 +46,6 @@ val dummyNotes = listOf( /** * Used to convert a [SavedNoteEntity] to a [Note]. - */ fun SavedNoteEntity.toNote(): Note { return Note( diff --git a/composeApp/src/commonMain/kotlin/app/academy/ui/HomeScreen.kt b/composeApp/src/commonMain/kotlin/app/academy/ui/HomeScreen.kt index 60e91a6..28e40a7 100644 --- a/composeApp/src/commonMain/kotlin/app/academy/ui/HomeScreen.kt +++ b/composeApp/src/commonMain/kotlin/app/academy/ui/HomeScreen.kt @@ -12,7 +12,7 @@ object HomeScreen : Screen { @Composable override fun Content() { LazyColumn(Modifier.fillMaxSize()) { - NoteItems(dummyNotes, onClick = {}) { + NoteItems(emptyList(), onClick = {}) { //onDismissed } }