{
"status": done
"msg": "Got all leaves",
"data": [
{
"_id": "63b26e351bc7d25e5b7a1ebb",
"reason": "fever",
"date": 1672511400000,
"type": "tab1",
"__v": 0
},
{
"_id": 63b26fb91bc7d25e5b7a1ee8
"reason": "sick",
"date": 1672511400000,
"type": "tab1",
"__v": 0
},
{
"_id": "63b26dcc1bc7d25e5b7a1eb",
"reason": "familyfunction",
"date": 1672511400000,
"type": "tab2",
"__v": 0
},
{
"_id": "63b26fcb1bc7d25e5b7a1ef3",
"reason": "urgent leave",
"date": 1672511400000,
"type": "tab1",
"__v": 0
}
]
}
this is the json data.
I have two tabs called tab1 & tab2. I need to show a data each of specific tabs, and epoch vale also changed into datetime stamp. example: if I pressed the tab1:
and same like if I pressed the tab 2.