Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
parent
9bd53aac28
commit
a962329dcf
2 changed files with 244 additions and 0 deletions
|
@ -4,6 +4,7 @@ import tv from '../../data/watchlist.json'
|
|||
|
||||
let watched = [];
|
||||
let currently = [];
|
||||
let to_watch = [];
|
||||
|
||||
tv.lists.forEach(list => {
|
||||
switch (list.name) {
|
||||
|
@ -13,6 +14,9 @@ tv.lists.forEach(list => {
|
|||
case "Currently watching":
|
||||
currently = list.tv;
|
||||
break;
|
||||
case "Watchlist":
|
||||
to_watch = list.tv;
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -54,5 +58,14 @@ const sortedYears = Object.keys(tvByYear).sort((a: any, b: any) => b - a);
|
|||
</ul>
|
||||
</details>
|
||||
))}
|
||||
|
||||
<details>
|
||||
<summary class="text-xl font-semibold cursor-pointer">watchlist</summary>
|
||||
<ul>
|
||||
{to_watch.map((tv) => (
|
||||
<li class="borderbottom">{tv.title}</li>
|
||||
))}
|
||||
</ul>
|
||||
</details>
|
||||
</main>
|
||||
</SectionContainer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue