-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from peppermenta/develop
Develop
- Loading branch information
Showing
15 changed files
with
549 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
REACT_APP_FIREBASE_API_KEY = | ||
REACT_APP_FIREBASE_AUTH_DOMAIN = | ||
REACT_APP_FIREBASE_DATABASE_URL = | ||
REACT_APP_FIREBASE_PROJECT_ID = | ||
REACT_APP_FIREBASE_STORAGE_BUCKET = | ||
REACT_APP_FIREBASE_MESSAGING_SENDER_ID = | ||
REACT_APP_FIREBASE_APP_ID = | ||
REACT_APP_MESS_API_ENDPOINT = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[1127/053907.921:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React, { useState } from 'react'; | ||
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core'; | ||
import HomeIcon from '@material-ui/icons/Home'; | ||
import RestaurantIcon from '@material-ui/icons/Restaurant'; | ||
import LocalTaxiIcon from '@material-ui/icons/LocalTaxi'; | ||
import DirectionsBusIcon from '@material-ui/icons/DirectionsBus'; | ||
import CalendarTodayIcon from '@material-ui/icons/CalendarToday'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
function BottomNav() { | ||
const [currentTab, setCurrentTab] = useState('home'); | ||
const handleTabChange = (_, newTab) => { | ||
setCurrentTab(newTab); | ||
}; | ||
return ( | ||
<BottomNavigation value={currentTab} onChange={handleTabChange} showLabels> | ||
<BottomNavigationAction | ||
component={Link} | ||
to="/home" | ||
label="Home" | ||
value="home" | ||
icon={<HomeIcon />} | ||
/> | ||
<BottomNavigationAction | ||
component={Link} | ||
to="/mess" | ||
label="Mess Menu" | ||
value="mess" | ||
icon={<RestaurantIcon />} | ||
/> | ||
<BottomNavigationAction | ||
component={Link} | ||
to="/timetable" | ||
label="Timetable" | ||
value="timetable" | ||
icon={<CalendarTodayIcon />} | ||
/> | ||
<BottomNavigationAction | ||
component={Link} | ||
to="/cab" | ||
label="Cab Sharing" | ||
value="cab-sharing" | ||
icon={<LocalTaxiIcon />} | ||
/> | ||
<BottomNavigationAction | ||
component={Link} | ||
to="/bus" | ||
label="Bus Schedule" | ||
value="bus-schedule" | ||
icon={<DirectionsBusIcon />} | ||
/> | ||
</BottomNavigation> | ||
); | ||
} | ||
export default BottomNav; |
Oops, something went wrong.