mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
import React, { useState } from 'react';
|
|
|
|
import { Link } from 'react-router-dom';
|
|
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
|
import { makeStyles } from '@material-ui/core/styles';
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
import { faHome, faList, faMoneyCheck } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
root: {
|
|
width: '100%',
|
|
},
|
|
icon: {
|
|
color: '#f44336',
|
|
},
|
|
}));
|
|
|
|
export const NavigationBar = () => {
|
|
const classes = useStyles();
|
|
const [activePage, setActivePage] = useState(0);
|
|
return (
|
|
<BottomNavigation
|
|
style={{
|
|
background: '#262525',
|
|
}}
|
|
value={activePage}
|
|
onChange={(event, newPage) => {
|
|
setActivePage(newPage);
|
|
}}
|
|
showLabels
|
|
className={classes.root}
|
|
>
|
|
<BottomNavigationAction
|
|
component={Link}
|
|
icon={<FontAwesomeIcon icon={faHome} />}
|
|
to="/bank"
|
|
/>
|
|
<BottomNavigationAction
|
|
component={Link}
|
|
icon={<FontAwesomeIcon icon={faMoneyCheck} />}
|
|
to="/bank/account"
|
|
/>
|
|
<BottomNavigationAction
|
|
component={Link}
|
|
icon={<FontAwesomeIcon icon={faList} />}
|
|
to="/bank/transactions"
|
|
/>
|
|
</BottomNavigation>
|
|
);
|
|
};
|