From 7683876cb1c0551f9cfa47fc90368a2bad721b39 Mon Sep 17 00:00:00 2001 From: Anneshu Nag <132702983+NK-Works@users.noreply.github.com> Date: Sun, 3 Nov 2024 23:57:33 +0530 Subject: [PATCH] added-settings --- frontend/src/components/Settings.jsx | 172 ++++++++++++++++++++++++--- 1 file changed, 153 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/Settings.jsx b/frontend/src/components/Settings.jsx index 8a9232f..7db66e1 100644 --- a/frontend/src/components/Settings.jsx +++ b/frontend/src/components/Settings.jsx @@ -1,24 +1,158 @@ -import React from 'react'; -import { useNavigate } from 'react-router-dom'; -import backicon from '../assets/svg/backicon.svg'; -const Settings = () => { - const navigate = useNavigate(); +import React, { useState } from 'react'; +export default function Settings() { + const [activeSection, setActiveSection] = useState('account'); + + const sections = [ + { id: 'account', label: 'Account Settings' }, + { id: 'privacy', label: 'Privacy' }, + { id: 'notifications', label: 'Notifications' }, + { id: 'security', label: 'Security' }, + { id: 'display', label: 'Display & Accessibility' }, + ]; -const HomeClick = () => { - navigate('/'); // Navigates to the home page - }; return ( - <> - -