Skip to content

Commit

Permalink
Create WalletSidebar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 24, 2024
1 parent d8123ba commit 9baa163
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions app/components/WalletSidebar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { useWallet } from '../contexts/WalletContext';
import { useTheme } from '../contexts/ThemeContext';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faChartLine, faList, faGear } from '@fortawesome/free-solid-svg-icons';

const WalletSidebar = () => {
const { wallet, accounts } = useWallet();
const { theme } = useTheme();

return (
<aside className={`wallet-sidebar ${theme}`}>
<ul>
<li>
<Link to="/wallet/overview">
<FontAwesomeIcon icon={faChartLine} size="lg" />
<span>Overview</span>
</Link>
</li>
<li>
<Link to="/wallet/accounts">
<FontAwesomeIcon icon={faList} size="lg" />
<span>Accounts</span>
</Link>
</li>
<li>
<Link to="/wallet/transactions">
<FontAwesomeIcon icon={faGear} size="lg" />
<span>Transactions</span>
</Link>
</li>
</ul>
</aside>
);
};

export default WalletSidebar;

0 comments on commit 9baa163

Please sign in to comment.