Skip to content

Commit ad1da8f

Browse files
committed
Remove duplicate sidebar component
1 parent 627c7f9 commit ad1da8f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/components/Layout.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useEffect } from 'react';
22
import Sidebar from './Sidebar';
3-
import { GiHamburgerMenu } from 'react-icons/gi';
3+
import { AiOutlineMenu } from "react-icons/ai";
44
import { FaExclamationTriangle, FaTimes } from 'react-icons/fa';
55
import logo from '../assets/images/wallet_white.png';
66
import { useLocation, useNavigate } from 'react-router-dom';
@@ -68,19 +68,11 @@ const Layout = ({ children, isPermissionGranted, tokenSentInSession }) => {
6868
{t('common.walletName')}
6969
</h1>
7070
<button className="text-white" onClick={toggleSidebar}>
71-
<GiHamburgerMenu size={24} />
71+
<AiOutlineMenu size={24} />
7272
</button>
7373
</header>
7474

7575
<div className="w-3/5 flex flex-col flex-grow">
76-
{/* Sidebar */}
77-
<div
78-
className={`sticky top-0 h-screen overflow-y-auto bg-custom-blue text-white p-6 sm:w-64 ${isOpen ? 'block' : 'hidden'
79-
}`}
80-
>
81-
<Sidebar isOpen={isOpen} toggle={toggleSidebar} />
82-
</div>
83-
8476
{/* Content */}
8577
<div className="flex-grow bg-gray-100 p-6 mt-10 pt-10 sm:mt-0 sm:pt-6 overflow-y-auto">
8678
{/* Conditional Notification Message */}

0 commit comments

Comments
 (0)