diff --git a/src/main/kotlin/main/Main.kt b/src/main/kotlin/main/Main.kt index 965d2b4..0829981 100644 --- a/src/main/kotlin/main/Main.kt +++ b/src/main/kotlin/main/Main.kt @@ -209,6 +209,7 @@ fun app() { onBackClick = { currentPage.value = "choixLangage" }, onProjectClick = { currentPage.value = "projects" }, onCodeToVerifyClick = { currentPage.value = "choixLangage" }, + onCompareClick = { currentPage.value = "compareProject" }, ) } } diff --git a/src/main/kotlin/main/Verify.kt b/src/main/kotlin/main/Verify.kt index c383209..56e1a14 100644 --- a/src/main/kotlin/main/Verify.kt +++ b/src/main/kotlin/main/Verify.kt @@ -20,7 +20,7 @@ fun choixLangagePage( onJavaClick: () -> Unit, onJavaScriptClick: () -> Unit, onProjectClick: () -> Unit, - onCodeToVerifyClick: () -> Unit, + onCodeToVerifyClick: () -> Unit ) { var isCompareClicked by remember { mutableStateOf(false) } val noFileSnackbarVisibleState = remember { mutableStateOf(false) } diff --git a/src/main/kotlin/main/nb_occurrence.kt b/src/main/kotlin/main/nb_occurrence.kt index 0f4deb8..20ca34e 100644 --- a/src/main/kotlin/main/nb_occurrence.kt +++ b/src/main/kotlin/main/nb_occurrence.kt @@ -27,6 +27,7 @@ fun parsedWordsTable( onBackClick: () -> Unit, onProjectClick: () -> Unit, onCodeToVerifyClick: () -> Unit, + onCompareClick: () -> Unit, ) { var isCompareClicked by remember { mutableStateOf(false) } val noFileSnackbarVisibleState = remember { mutableStateOf(false) } @@ -95,12 +96,21 @@ fun parsedWordsTable( Spacer(modifier = Modifier.height(16.dp)) - buttonComponent( - text = languageManager.getBackText(), - onClick = { onBackClick() }, - icon = Icons.Filled.ArrowBack, - modifier = Modifier.padding(10.dp) - ) + Row ( + horizontalArrangement = Arrangement.spacedBy(16.dp) + ) { + buttonComponent( + text = languageManager.getBackText(), + onClick = { onBackClick() }, + icon = Icons.Filled.ArrowBack, + modifier = Modifier.height(40.dp) + ) + buttonComponent( + text = languageManager.getCompareText(), + onClick = onCompareClick, + modifier = Modifier.height(40.dp), + ) + } } dropdownButtonComponent( languageManager = languageManager,