Skip to content
Snippets Groups Projects
Commit 590857f8 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

tabs

parent b98f9b31
No related branches found
No related tags found
No related merge requests found
Pipeline #394527 failed
......@@ -41,13 +41,19 @@ function TimeItem({tag, title, children, pic, author, tabid}: ItemProps){
return rows;
}
export function TimeHori(){
export function TimeHori({tab}: {tab: string}){
let nod = undefined;
if (tab = ""){
nod = <AllItems></AllItems>
}
else{
nod = <getTypeItems ta={tab}></getTypeItems>
}
return(
<div>
<section className="timeline row align-items-center">
<ol className="timelineol">
<AllItems></AllItems>
{nod}
<li className="timelineolli"></li>
</ol>
......@@ -132,9 +138,9 @@ function TimeItem({tag, title, children, pic, author, tabid}: ItemProps){
return rows;
}
export function getTypeItems(ta: string){
export function getTypeItems({ta}: {ta: string}){
let rows = []
for ( let i = 0; i < data.length; i++ ){
for ( let i = 0; i < data.length; i++){
if (ta = data[i].tag)
rows.push(<TimeItem
title={data[i].title}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment