Просмотр исходного кода

RHL-009 feat(profile): integrate ChangePasswordCard component into ProfilePage

Code_Uwe 5 дней назад
Родитель
Сommit
35587d80c0
1 измененных файлов с 3 добавлено и 19 удалено
  1. 3 19
      components/profile/ProfilePage.jsx

+ 3 - 19
components/profile/ProfilePage.jsx

@@ -3,6 +3,8 @@
 import React from "react";
 import React from "react";
 import { useAuth } from "@/components/auth/authContext";
 import { useAuth } from "@/components/auth/authContext";
 
 
+import ChangePasswordCard from "@/components/profile/ChangePasswordCard";
+
 import { Button } from "@/components/ui/button";
 import { Button } from "@/components/ui/button";
 import { Input } from "@/components/ui/input";
 import { Input } from "@/components/ui/input";
 import { Label } from "@/components/ui/label";
 import { Label } from "@/components/ui/label";
@@ -96,25 +98,7 @@ export default function ProfilePage() {
 				</CardFooter>
 				</CardFooter>
 			</Card>
 			</Card>
 
 
-			<Card>
-				<CardHeader>
-					<CardTitle>Passwort</CardTitle>
-					<CardDescription>
-						Die Passwort-Änderung wird in einem separaten Ticket umgesetzt.
-					</CardDescription>
-				</CardHeader>
-
-				<CardFooter className="flex justify-end">
-					<Button
-						type="button"
-						disabled
-						aria-disabled="true"
-						title="Kommt später"
-					>
-						Passwort ändern
-					</Button>
-				</CardFooter>
-			</Card>
+			<ChangePasswordCard />
 
 
 			{!isAuthenticated ? (
 			{!isAuthenticated ? (
 				<p className="text-xs text-muted-foreground">
 				<p className="text-xs text-muted-foreground">