-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated with tabs, padding to faq, menuIcon and close button
- Loading branch information
1 parent
e4cf8e0
commit 415f97b
Showing
5 changed files
with
62 additions
and
18 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
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,50 @@ | ||
import React, { useState } from "react"; | ||
import { Link } from "react-router-dom"; | ||
import Tabs from "@mui/material/Tabs"; | ||
import Tab from "@mui/material/Tab"; | ||
import QuizOutlinedIcon from '@mui/icons-material/QuizOutlined'; | ||
import { DescriptionOutlined, LaunchOutlined, LiveTvOutlined } from "@mui/icons-material"; | ||
|
||
function MyTabs() { | ||
const [selectedValue, setSelectedValue] = useState(0); // This takes care of the updated variable name | ||
|
||
const handleChange = (event, newValue) => { | ||
setSelectedValue(newValue); | ||
}; | ||
|
||
return ( | ||
<Tabs selected={selectedValue} onChange={handleChange} aria-label="icon label tabs example" orientation="vertical"> | ||
<Tab | ||
style={{color:"white"}} | ||
icon={<LiveTvOutlined style={{color:"white"}} fontSize="large"/>} | ||
label="Live Data" | ||
component={Link} | ||
to="/" | ||
/> | ||
<Tab | ||
style={{color:"white"}} | ||
icon={<QuizOutlinedIcon style={{color:"white"}} fontSize="large" />} | ||
label="FAQ" | ||
component={Link} | ||
to="/FAQ" | ||
/> | ||
<Tab | ||
style={{color:"white"}} | ||
icon={<DescriptionOutlined style={{color:"white"}} fontSize="large" />} | ||
label="Synopsis" | ||
component={Link} | ||
to="/explainer" | ||
/> | ||
<Tab | ||
style={{color:"white"}} | ||
label="Visit DECC data" | ||
component={'a'} | ||
href="https://catalogue.ceda.ac.uk/uuid/f5b38d1654d84b03ba79060746541e4f" | ||
target="_blank" | ||
icon={<LaunchOutlined fontSize="large" />}/> | ||
|
||
</Tabs> | ||
); | ||
} | ||
|
||
export default MyTabs; |