Skip to content
Permalink
1f54fc938f
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
38 lines (32 sloc) 971 Bytes
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;