feat: replace Paper with Modal in CertificationPage, ConfigurationPage, ExamPage, and QuestionPage for consistent UI

This commit is contained in:
estifanos
2026-08-12 07:55:43 +00:00
parent d0bbfe30d1
commit 7c9f78c680
4 changed files with 25 additions and 20 deletions

View File

@@ -11,7 +11,6 @@ import {
Modal,
Text,
Select,
Paper,
Loader,
Center,
Alert,
@@ -104,7 +103,16 @@ function ProfessionForm({
);
return (
<Paper p="md" withBorder mb="md" radius="md">
<Modal
opened
onClose={onCancel}
title={
editingProf
? t("configuration.update")
: t("configuration.addProfession")
}
size="md"
>
<form onSubmit={handleSubmit}>
<Stack gap="sm">
<TextInput
@@ -143,7 +151,7 @@ function ProfessionForm({
size="sm"
searchable
/>
<Group justify="flex-end">
<ModalFooter>
<Button variant="default" onClick={onCancel} size="sm">
{t("configuration.cancel")}
</Button>
@@ -152,10 +160,10 @@ function ProfessionForm({
? t("configuration.update")
: t("configuration.create")}
</Button>
</Group>
</ModalFooter>
</Stack>
</form>
</Paper>
</Modal>
);
}