|
|
@ -76,6 +76,7 @@ fun ProfilPage(index: Int,
|
|
|
|
navFavorite: (Int) -> Unit,
|
|
|
|
navFavorite: (Int) -> Unit,
|
|
|
|
navAccueil: (Int) -> Unit,
|
|
|
|
navAccueil: (Int) -> Unit,
|
|
|
|
navQuiz: (Int) -> Unit,
|
|
|
|
navQuiz: (Int) -> Unit,
|
|
|
|
|
|
|
|
navUnLog: () -> Unit,
|
|
|
|
services: IServices
|
|
|
|
services: IServices
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
val user = services.getUserById(index) ?: return
|
|
|
|
val user = services.getUserById(index) ?: return
|
|
|
@ -122,11 +123,11 @@ fun ProfilPage(index: Int,
|
|
|
|
SpaceHeightComponent(16)
|
|
|
|
SpaceHeightComponent(16)
|
|
|
|
|
|
|
|
|
|
|
|
// Bouton
|
|
|
|
// Bouton
|
|
|
|
ButtonProfile(R.string.ButtonAddQuoteprofile, 18, Color.Black, Color.White)
|
|
|
|
ButtonProfile(R.string.ButtonAddQuoteprofile, 18, Color.Black, Color.White,navUnLog) // Pas encore de navigation definie
|
|
|
|
SpaceHeightComponent(16)
|
|
|
|
SpaceHeightComponent(16)
|
|
|
|
ButtonProfile(R.string.ButtonLanguageprofile, 18, Color.Black, Color.White)
|
|
|
|
ButtonProfile(R.string.ButtonLanguageprofile, 18, Color.Black, Color.White,navUnLog) // Pas encore de navigation definie
|
|
|
|
SpaceHeightComponent(16)
|
|
|
|
SpaceHeightComponent(16)
|
|
|
|
ButtonProfile(R.string.ButtonUnlogprofile, 18, Color.Black, Color.White)
|
|
|
|
ButtonProfile(R.string.ButtonUnlogprofile, 18, Color.Black, Color.White, navUnLog)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -461,10 +462,10 @@ fun DisplayPassword(onEdit: () -> Unit) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun ButtonProfile(textResId : Int, size :Int, colorTexte : Color, colorButton : Color){
|
|
|
|
fun ButtonProfile(textResId : Int, size :Int, colorTexte : Color, colorButton : Color,navController: () -> Unit){
|
|
|
|
val text = stringResource(id = textResId)
|
|
|
|
val text = stringResource(id = textResId)
|
|
|
|
Button(
|
|
|
|
Button(
|
|
|
|
onClick = { /* Action */ },
|
|
|
|
onClick = { navController() },
|
|
|
|
colors = ButtonDefaults.buttonColors(containerColor = colorButton),
|
|
|
|
colors = ButtonDefaults.buttonColors(containerColor = colorButton),
|
|
|
|
modifier = Modifier.fillMaxWidth(),
|
|
|
|
modifier = Modifier.fillMaxWidth(),
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|