Add compare button on parsed view
parent
a72708d76c
commit
ed8915b9fe
|
@ -209,6 +209,7 @@ fun app() {
|
|||
onBackClick = { currentPage.value = "choixLangage" },
|
||||
onProjectClick = { currentPage.value = "projects" },
|
||||
onCodeToVerifyClick = { currentPage.value = "choixLangage" },
|
||||
onCompareClick = { currentPage.value = "compareProject" },
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) }
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue