|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.example.what_the_fantasy.ui.screens
|
|
|
|
|
|
|
|
|
|
import androidx.compose.foundation.background
|
|
|
|
|
import androidx.compose.foundation.clickable
|
|
|
|
|
import androidx.compose.foundation.layout.*
|
|
|
|
|
import androidx.compose.foundation.lazy.LazyColumn
|
|
|
|
|
import androidx.compose.foundation.lazy.items
|
|
|
|
@ -18,6 +19,7 @@ import com.example.what_the_fantasy.data.local.FavoriteStub
|
|
|
|
|
import com.example.what_the_fantasy.data.services.IServices
|
|
|
|
|
import com.example.what_the_fantasy.ui.components.NavBar
|
|
|
|
|
import com.example.what_the_fantasy.ui.components.QuoteLittle
|
|
|
|
|
import com.example.what_the_fantasy.ui.navigations.OneQuote
|
|
|
|
|
import com.example.what_the_fantasy.ui.theme.colorBackground
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
@ -26,6 +28,7 @@ fun FavoritePage(
|
|
|
|
|
navAccueil: (Int) -> Unit,
|
|
|
|
|
navQuiz: (Int) -> Unit,
|
|
|
|
|
navProfil: (Int) -> Unit,
|
|
|
|
|
navQuote: (Int) -> Unit,
|
|
|
|
|
services: IServices
|
|
|
|
|
) {
|
|
|
|
|
val user = services.getUserById(index) ?: return
|
|
|
|
@ -57,7 +60,11 @@ fun FavoritePage(
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
items(quotes) { quote ->
|
|
|
|
|
QuoteLittle(quote)
|
|
|
|
|
Column (Modifier.clickable { navQuote( quote.id )} ){
|
|
|
|
|
QuoteLittle(quote)
|
|
|
|
|
|
|
|
|
|
Spacer(modifier = Modifier.height(16.dp))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|