mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-30 11:08:13 +00:00
feat: replace Paper with Modal in CertificationPage, ConfigurationPage, ExamPage, and QuestionPage for consistent UI
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user