{"size": 1042, "ext": "js", "max_stars_repo_path": "src/components/timeTableTeacher.js", "max_stars_repo_name": "manoj2210/TechFeed", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/timeTableTeacher.js", "max_issues_repo_name": "manoj2210/TechFeed", "max_issues_repo_issues_event_min_datetime": "2020-05-10T07:52:34.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-13T12:55:38.000Z", "max_forks_repo_path": "src/components/timeTableTeacher.js", "max_forks_repo_name": "manoj2210/Techfeed-Frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 11, "max_forks_count": null, "avg_line_length": 21.2653061224, "max_line_length": 71, "alphanum_fraction": 0.4760076775}
import React from 'react';
import Timeline from "../components/timeline";
import {get} from '../../services/rest_service';


function TimeTableTeacher(props){

    const data=[
        {
            subject:"Operating System",
            class:"M-204",
            courseCode:"18XT45",
            time:"8:30-9:20",
        },
        {
            subject:"OS",
            class:"M-204",
            courseCode:"18XT45",
            time:"8:30-9:20",
        },
        {
            subject:"OS",
            class:"M-204",
            courseCode:"18XT45",
            time:"8:30-9:20",
        },
        {
            subject:"OS",
            class:"M-204",
            courseCode:"18XT45",
            time:"8:30-9:20",
        },
    ];

    return(
        <div className="mx-auto px-4 sm:px-8 min-h-screen bg-gray-300">
                <Timeline data={data}/>
        </div>
    );
}

TimeTableTeacher.getInitialProps=async ctx =>{
    return {serverRender: await get('/getData/timeTable')};
};

export default TimeTableTeacher;


