Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
7053CEM/front-end/src/pages/HomePage.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (32 sloc)
971 Bytes
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
import { Grid } from "@mui/material"; | |
import { Box } from "@mui/system"; | |
import React, { useState } from "react"; | |
import { Tab, Tabs, TabList, TabPanel } from "react-tabs"; | |
import "react-tabs/style/react-tabs.css"; | |
import CourseLists from "../components/FullCourseList/CourseLists"; | |
import MyCourses from "../components/MyCourses"; | |
import JobApplication from "./JobApplication"; | |
const HomePage = () => { | |
const [tabIndex, setTabIndex] = useState(0); | |
return ( | |
<Box sx={{ m: 5, display: "flex" }}> | |
<Tabs selectedIndex={tabIndex} onSelect={(index) => setTabIndex(index)}> | |
<TabList> | |
<Tab>SKILL UP</Tab> | |
<Tab>MY COURSES</Tab> | |
<Tab>LEVEL UP</Tab> | |
</TabList> | |
<TabPanel> | |
<CourseLists /> | |
</TabPanel> | |
<TabPanel> | |
<MyCourses /> | |
</TabPanel> | |
<TabPanel> | |
<JobApplication /> | |
</TabPanel> | |
</Tabs> | |
</Box> | |
); | |
}; | |
export default HomePage; |