diff --git a/src/main/kotlin/main/Detail.kt b/src/main/kotlin/main/Detail.kt index 1b4d137..5bdd2d2 100644 --- a/src/main/kotlin/main/Detail.kt +++ b/src/main/kotlin/main/Detail.kt @@ -18,6 +18,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp +import main.component.buttonComponent @Composable fun glossaryDetailedPage(glossary: List, onBackClick: () -> Unit) { @@ -34,16 +35,7 @@ fun glossaryDetailedPage(glossary: List, onBackClick: () -> Unit) { Spacer(modifier = Modifier.height(16.dp)) - Button( - onClick = { onBackClick() }, - colors = androidx.compose.material.ButtonDefaults.buttonColors( - backgroundColor = customRedColor, - contentColor = Color.White - ) - ) { - Icon(imageVector = Icons.Default.ArrowBack, contentDescription = null) - Text("Retour") - } + buttonComponent(text = "Retour", onClick = { onBackClick() }) } }