mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
feat(bank/nui): new icons for navigation bar
This commit is contained in:
1 parent
974c3b2969
commit
15276fe959
1 file changed
+11
-3
@@ -4,8 +4,8 @@ import { Link } from "react-router-dom";
|
|||||||
import { BottomNavigation, BottomNavigationAction } from "@material-ui/core";
|
import { BottomNavigation, BottomNavigationAction } from "@material-ui/core";
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { faHome } from "@fortawesome/free-solid-svg-icons";
|
import { faHome, faList, faMoneyCheck } from "@fortawesome/free-solid-svg-icons";
|
||||||
import AddCircleIcon from "@material-ui/icons/AddCircle";
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -21,6 +21,9 @@ export const NavigationBar = () => {
|
|||||||
const [activePage, setActivePage] = useState(0)
|
const [activePage, setActivePage] = useState(0)
|
||||||
return (
|
return (
|
||||||
<BottomNavigation
|
<BottomNavigation
|
||||||
|
style={{
|
||||||
|
background: '#262525'
|
||||||
|
}}
|
||||||
value={activePage}
|
value={activePage}
|
||||||
onChange={(event, newPage) => {
|
onChange={(event, newPage) => {
|
||||||
setActivePage(newPage);
|
setActivePage(newPage);
|
||||||
@@ -35,9 +38,14 @@ export const NavigationBar = () => {
|
|||||||
/>
|
/>
|
||||||
<BottomNavigationAction
|
<BottomNavigationAction
|
||||||
component={Link}
|
component={Link}
|
||||||
icon={<AddCircleIcon />}
|
icon={<FontAwesomeIcon icon={faMoneyCheck} />}
|
||||||
to="/bank/account"
|
to="/bank/account"
|
||||||
/>
|
/>
|
||||||
|
<BottomNavigationAction
|
||||||
|
component={Link}
|
||||||
|
icon={<FontAwesomeIcon icon={faList} />}
|
||||||
|
to="/bank/transactions"
|
||||||
|
/>
|
||||||
</BottomNavigation>
|
</BottomNavigation>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user