Add compare button on parsed view
parent
a72708d76c
commit
ed8915b9fe
|
@ -209,6 +209,7 @@ fun app() {
|
||||||
onBackClick = { currentPage.value = "choixLangage" },
|
onBackClick = { currentPage.value = "choixLangage" },
|
||||||
onProjectClick = { currentPage.value = "projects" },
|
onProjectClick = { currentPage.value = "projects" },
|
||||||
onCodeToVerifyClick = { currentPage.value = "choixLangage" },
|
onCodeToVerifyClick = { currentPage.value = "choixLangage" },
|
||||||
|
onCompareClick = { currentPage.value = "compareProject" },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ fun choixLangagePage(
|
||||||
onJavaClick: () -> Unit,
|
onJavaClick: () -> Unit,
|
||||||
onJavaScriptClick: () -> Unit,
|
onJavaScriptClick: () -> Unit,
|
||||||
onProjectClick: () -> Unit,
|
onProjectClick: () -> Unit,
|
||||||
onCodeToVerifyClick: () -> Unit,
|
onCodeToVerifyClick: () -> Unit
|
||||||
) {
|
) {
|
||||||
var isCompareClicked by remember { mutableStateOf(false) }
|
var isCompareClicked by remember { mutableStateOf(false) }
|
||||||
val noFileSnackbarVisibleState = remember { mutableStateOf(false) }
|
val noFileSnackbarVisibleState = remember { mutableStateOf(false) }
|
||||||
|
|
|
@ -27,6 +27,7 @@ fun parsedWordsTable(
|
||||||
onBackClick: () -> Unit,
|
onBackClick: () -> Unit,
|
||||||
onProjectClick: () -> Unit,
|
onProjectClick: () -> Unit,
|
||||||
onCodeToVerifyClick: () -> Unit,
|
onCodeToVerifyClick: () -> Unit,
|
||||||
|
onCompareClick: () -> Unit,
|
||||||
) {
|
) {
|
||||||
var isCompareClicked by remember { mutableStateOf(false) }
|
var isCompareClicked by remember { mutableStateOf(false) }
|
||||||
val noFileSnackbarVisibleState = remember { mutableStateOf(false) }
|
val noFileSnackbarVisibleState = remember { mutableStateOf(false) }
|
||||||
|
@ -95,12 +96,21 @@ fun parsedWordsTable(
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(16.dp))
|
Spacer(modifier = Modifier.height(16.dp))
|
||||||
|
|
||||||
|
Row (
|
||||||
|
horizontalArrangement = Arrangement.spacedBy(16.dp)
|
||||||
|
) {
|
||||||
buttonComponent(
|
buttonComponent(
|
||||||
text = languageManager.getBackText(),
|
text = languageManager.getBackText(),
|
||||||
onClick = { onBackClick() },
|
onClick = { onBackClick() },
|
||||||
icon = Icons.Filled.ArrowBack,
|
icon = Icons.Filled.ArrowBack,
|
||||||
modifier = Modifier.padding(10.dp)
|
modifier = Modifier.height(40.dp)
|
||||||
)
|
)
|
||||||
|
buttonComponent(
|
||||||
|
text = languageManager.getCompareText(),
|
||||||
|
onClick = onCompareClick,
|
||||||
|
modifier = Modifier.height(40.dp),
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dropdownButtonComponent(
|
dropdownButtonComponent(
|
||||||
languageManager = languageManager,
|
languageManager = languageManager,
|
||||||
|
|
Loading…
Reference in New Issue