improved design of the error message
This commit is contained in:
@@ -55,7 +55,9 @@ const ChangePWform: React.FC<ChangePWformProps> = ({
|
||||
</Field.Root>
|
||||
</Stack>
|
||||
</Card.Body>
|
||||
<Card.Footer justifyContent="flex-end" gap="2">
|
||||
<Card.Footer gap="2">
|
||||
<Stack w="full" gap="3">
|
||||
<Stack direction="row" justify="flex-end" gap="2">
|
||||
<Button variant="outline" onClick={onClose}>
|
||||
Abbrechen
|
||||
</Button>
|
||||
@@ -64,7 +66,9 @@ const ChangePWform: React.FC<ChangePWformProps> = ({
|
||||
onClick={async () => {
|
||||
const newPassword =
|
||||
(
|
||||
document.getElementById("new_password") as HTMLInputElement
|
||||
document.getElementById(
|
||||
"new_password"
|
||||
) as HTMLInputElement
|
||||
)?.value.trim() || "";
|
||||
const confirmNewPassword =
|
||||
(
|
||||
@@ -98,6 +102,8 @@ const ChangePWform: React.FC<ChangePWformProps> = ({
|
||||
>
|
||||
Ändern
|
||||
</Button>
|
||||
</Stack>
|
||||
|
||||
{showSubAlert && (
|
||||
<Alert.Root status="error">
|
||||
<Alert.Indicator />
|
||||
@@ -106,6 +112,7 @@ const ChangePWform: React.FC<ChangePWformProps> = ({
|
||||
</Alert.Content>
|
||||
</Alert.Root>
|
||||
)}
|
||||
</Stack>
|
||||
</Card.Footer>
|
||||
</Card.Root>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user