Organized save avatar
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import React, {useEffect, useState} from 'react';
|
||||
|
||||
import Sidebar from '../../partials/Sidebar';
|
||||
import Header from '../../partials/Header';
|
||||
@@ -6,7 +6,9 @@ import SettingsSidebar from '../../partials/settings/SettingsSidebar';
|
||||
import AccountPanel from '../../partials/settings/AccountPanel';
|
||||
|
||||
function Account() {
|
||||
|
||||
useEffect(() => {
|
||||
localStorage.setItem('svgKey', '')
|
||||
}, [])
|
||||
const [sidebarOpen, setSidebarOpen] = useState(false);
|
||||
|
||||
return (
|
||||
@@ -15,7 +17,7 @@ function Account() {
|
||||
{/* Sidebar */}
|
||||
<Sidebar sidebarOpen={sidebarOpen} setSidebarOpen={setSidebarOpen} />
|
||||
|
||||
{/* Content area */}
|
||||
{/* Content area */}
|
||||
<div className="relative flex flex-col flex-1 overflow-y-auto overflow-x-hidden">
|
||||
|
||||
{/* Site header */}
|
||||
@@ -30,7 +32,7 @@ function Account() {
|
||||
<h1 className="text-2xl md:text-3xl text-slate-800 font-bold">Account Settings ✨</h1>
|
||||
</div>
|
||||
|
||||
{/* Content */}
|
||||
{/* Content */}
|
||||
<div className="bg-white shadow-lg rounded-sm mb-8">
|
||||
<div className="flex flex-col md:flex-row md:-mr-px">
|
||||
<SettingsSidebar />
|
||||
@@ -42,9 +44,9 @@ function Account() {
|
||||
</main>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Account;
|
||||
export default Account;
|
||||
|
||||
Reference in New Issue
Block a user