Refactor SecurityPrivacySettings component

Refactor the SecurityPrivacySettings component into smaller, more manageable sub-components for improved readability and maintainability. The functionality of the page remains unchanged.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 23:27:21 +00:00
parent 435ea26556
commit 9631303b3c
7 changed files with 284 additions and 167 deletions

View File

@@ -0,0 +1,27 @@
import React from 'react';
import { ArrowLeft } from 'lucide-react';
import { useNavigate } from 'react-router-dom';
import { Button } from '@/components/ui/button';
const SecurityHeader = () => {
const navigate = useNavigate();
return (
<header className="py-8">
<div className="flex items-center mb-6">
<Button
variant="ghost"
size="icon"
onClick={() => navigate('/settings')}
className="mr-2"
>
<ArrowLeft size={20} />
</Button>
<h1 className="text-2xl font-bold neuro-text"> </h1>
</div>
</header>
);
};
export default SecurityHeader;