mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
cleanup(bank): general cleanup for bank
This commit is contained in:
1 parent
319e5efac5
commit
eb506f0ab0
13 files changed
+282
-385
No files matched your search
@@ -1,28 +1,31 @@
|
||||
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";
|
||||
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%",
|
||||
width: '100%',
|
||||
},
|
||||
icon: {
|
||||
color: "#f44336",
|
||||
color: '#f44336',
|
||||
},
|
||||
}))
|
||||
}));
|
||||
|
||||
export const NavigationBar = () => {
|
||||
const classes = useStyles();
|
||||
const [activePage, setActivePage] = useState(0)
|
||||
const [activePage, setActivePage] = useState(0);
|
||||
return (
|
||||
<BottomNavigation
|
||||
style={{
|
||||
background: '#262525'
|
||||
background: '#262525',
|
||||
}}
|
||||
value={activePage}
|
||||
onChange={(event, newPage) => {
|
||||
@@ -34,18 +37,18 @@ export const NavigationBar = () => {
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
icon={<FontAwesomeIcon icon={faHome} />}
|
||||
to="/bank"
|
||||
to='/bank'
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
icon={<FontAwesomeIcon icon={faMoneyCheck} />}
|
||||
to="/bank/account"
|
||||
to='/bank/account'
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
icon={<FontAwesomeIcon icon={faList} />}
|
||||
to="/bank/transactions"
|
||||
to='/bank/transactions'
|
||||
/>
|
||||
</BottomNavigation>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user