I have a data in the form of json as given below:
[
{
"module_id": 2,
"module_type": "Instructional",
"module_name": "Introduction and Course Overview",
"duration": 30,
"course": {
"course_id": 1,
"course_name": "AWS"
}
},
{
"module_id": 1,
"module_type": "Instructional",
"module_name": "Quiz",
"duration": 20,
"course": {
"course_id": 1,
"course_name": "AWS"
}
}
]
Now, I have the following code in react and I want to render it on timeline: Timeline Code (Material - UI)
return(
<Timeline align="alternate">
<TimelineItem>
<TimelineSeparator>
<TimelineDot color="primary">
<LaptopMacIcon />
</TimelineDot>
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>
<Paper elevation={3} className={classes.paper}>
<Typography variant="h6" component="h1">
**Here, I want to display the module_name i.e Introduction and Course Overview and Quiz**
</Typography>
</Paper>
</TimelineContent>
</TimelineItem>
<TimelineItem>
)
Please help on how to do the same, I want the timeline to have the laptop icon with something like this
Introduction and Course Overview
|
|
Quiz
Thank you in advance :)