style: lint en format
This commit is contained in:
parent
db703b6066
commit
8649725364
3 changed files with 45 additions and 49 deletions
|
@ -87,9 +87,9 @@
|
|||
return true;
|
||||
} else if (value !== undefined && validate(value) && version(value) === 4) {
|
||||
return true;
|
||||
} else {
|
||||
}
|
||||
return t("invalidFormat");
|
||||
}
|
||||
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -97,7 +97,7 @@
|
|||
const { mutate } = useCreateJoinRequestMutation();
|
||||
|
||||
// Function called when a student submits a code to join a class
|
||||
function submitCode() {
|
||||
function submitCode() : void {
|
||||
// Check if the code is valid
|
||||
if (code.value !== undefined && validate(code.value) && version(code.value) === 4) {
|
||||
mutate(
|
||||
|
@ -121,7 +121,7 @@
|
|||
color: "success",
|
||||
});
|
||||
|
||||
const showSnackbar = (message: string, color: string) => {
|
||||
function showSnackbar(message: string, color: string) : void {
|
||||
snackbar.value.message = message;
|
||||
snackbar.value.color = color;
|
||||
snackbar.value.visible = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue