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 {
Text,
TextInput,
Textarea,
Paper,
Card,
Alert,
Select,
@@ -132,7 +131,7 @@ function ExamForm({
};
return (
<Paper p="md" withBorder mb="md" radius="md">
<Modal opened onClose={onCancel} title={editing ? t("exam.update") : t("exam.add")} size="xl">
<form onSubmit={handleSubmit}>
<Tabs defaultValue="basic" variant="outline" radius="md">
<Tabs.List mb="md">
@@ -333,16 +332,16 @@ function ExamForm({
</Tabs.Panel>
</Tabs>
<Group justify="flex-end" mt="md">
<ModalFooter mt="md">
<Button variant="default" onClick={onCancel} size="sm">
{t("exam.cancel")}
</Button>
<Button type="submit" size="sm" loading={isSubmitting}>
{editing ? t("exam.update") : t("exam.create")}
</Button>
</Group>
</ModalFooter>
</form>
</Paper>
</Modal>
);
}