mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
* basic framework for match/tinder * working version of swiping * working version of profile editing * introducing backend * working matching system * working profile updating * fix all linting issues * updated events to Enum * working profile generation * documentation updates * general PR feedback * working profile loading, matches show matchedAt * slight modification to event strings * added sql imports
30 lines
995 B
TypeScript
30 lines
995 B
TypeScript
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/Whatshot';
|
|
import GroupIcon from '@material-ui/icons/Group';
|
|
import ProfileIcon from '@material-ui/icons/Person';
|
|
|
|
const useStyles = makeStyles({
|
|
root: {
|
|
width: '100%',
|
|
},
|
|
});
|
|
|
|
export function MatchBottomNavigation({ activePage, handleChange }) {
|
|
const classes = useStyles();
|
|
|
|
console.log(activePage);
|
|
|
|
return (
|
|
<BottomNavigation value={activePage} onChange={handleChange} className={classes.root}>
|
|
<BottomNavigationAction component={Link} to="/match" icon={<HomeIcon />} />
|
|
<BottomNavigationAction component={Link} to="/match/matches" icon={<GroupIcon />} />
|
|
<BottomNavigationAction component={Link} to="/match/profile" icon={<ProfileIcon />} />
|
|
</BottomNavigation>
|
|
);
|
|
}
|
|
|
|
export default MatchBottomNavigation;
|