mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
moved navigation to use react router dom
This commit is contained in:
1 parent
1d4faa4bf9
commit
23e4da2007
2 files changed
+24
-4
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { BottomNavigation, BottomNavigationAction } from "@material-ui/core";
|
||||
import HomeIcon from "@material-ui/icons/Home";
|
||||
@@ -20,9 +21,21 @@ export function TwitterBottomNavigation({ activePage, handleChange }) {
|
||||
onChange={handleChange}
|
||||
className={classes.root}
|
||||
>
|
||||
<BottomNavigationAction icon={<HomeIcon />} />
|
||||
<BottomNavigationAction icon={<SearchIcon />} />
|
||||
<BottomNavigationAction icon={<ProfileIcon />} />
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
to="/twitter"
|
||||
icon={<HomeIcon />}
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
to="/twitter/search"
|
||||
icon={<SearchIcon />}
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
to="/twitter/profile"
|
||||
icon={<ProfileIcon />}
|
||||
/>
|
||||
</BottomNavigation>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user