Remove data property from Article View.

This commit is contained in:
Emmanuel 2022-08-25 17:12:49 +02:00
parent a0d9f1a06e
commit 6d9efd976f
4 changed files with 3 additions and 5 deletions

View file

@ -1,12 +1,10 @@
<script lang="ts">
import { SummaryView } from "augmented-data-viewer"
import type { Aggregate } from "$lib/aggregates"
import type { Article } from "$lib/legal"
import { summarizeLegalObject } from "$lib/summaries"
export let article: Article
export let data: Aggregate
export let level = 1
$: summary = summarizeLegalObject({ key: "article" }, "article", article)

View file

@ -12,7 +12,7 @@
{#if items !== undefined}
<div class="tabs">
{#each items as { href, label }}
<a class="tab tab-bordered" class:tab-active={href === pathname} {href}
<a class="tab tab-lifted" class:tab-active={href === pathname} {href}
>{label}</a
>
{/each}

View file

@ -28,7 +28,7 @@
{#each [...iterArrayOrSingleton(sectionTa.STRUCTURE_TA.LIEN_ART)] as lienArt}
{@const article = data.article?.[lienArt["@id"]]}
{#if article !== undefined}
<ArticleView {article} {data} level={level + 1} />
<ArticleView {article} level={level + 1} />
{/if}
{/each}
{:else if sectionTa.STRUCTURE_TA.LIEN_ART !== undefined}

View file

@ -16,7 +16,7 @@
{#each [...iterArrayOrSingleton(textelr.STRUCT.LIEN_ART)] as lienArt}
{@const article = data.article?.[lienArt["@id"]]}
{#if article !== undefined}
<ArticleView {article} {data} level={level + 1} />
<ArticleView {article} level={level + 1} />
{/if}
{/each}
{:else if textelr.STRUCT.LIEN_ART !== undefined}