Skip to content

Commit

Permalink
Merge pull request #31 from MinhLu12/RemoveTabs
Browse files Browse the repository at this point in the history
Remove tabs that are not needed
  • Loading branch information
jambao24 authored Aug 31, 2020
2 parents a475b46 + d3dcdf8 commit 3beff4f
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/components/Navigation/TabDropdown/TabDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ import { Link } from "react-router-dom";
const aboutUsItems = [
{ label: "Our Practice", route: "/" },
{ label: "Meet Dr. Bergin", route: "/MeetDrBergin" },
{ label: "Meet Our Team", route: "/" },
];
const forPatientsItems = [
{ label: "Patient Forms", route: "/" },
{ label: "Financial Policy", route: "/" },
{ label: "Insurance", route: "/" },
{ label: "Patient Instructions", route: "/" },
];
const servicesItems = [
{ label: "Cosmetic Dentistry", route: "/" },
Expand All @@ -33,7 +31,7 @@ const forDoctorsItems = [
];
const tabs = [
{ key: 0, label: "Home", items: [] },
{ key: 1, label: "About Us", items: aboutUsItems },
{ key: 1, label: "Meet Dr. Bergin", items: [] },
{ key: 2, label: "Services", items: servicesItems },
{ key: 3, label: "For Patients", items: forPatientsItems },
{ key: 4, label: "Gallery", items: [] },
Expand Down Expand Up @@ -80,6 +78,21 @@ class TabDropdown extends Component {
/>
</Link>
);
} else if (tab.label == "Meet Dr. Bergin") {
return (
<Link to="/MeetDrBergin">
<Tab
key={tab.key}
onMouseEnter={this.showDropdown.bind(this, tab.key)}
className={cn.Tab}
label={tab.label}
aria-owns={
this.showDropdown ? "menu-list-grow" : undefined
}
aria-haspopup={"true"}
/>
</Link>
);
} else {
return (
<Tab
Expand Down

0 comments on commit 3beff4f

Please sign in to comment.