FIX: Usage of RichText

Actually using my implemented functionality
This commit is contained in:
webfussel 2025-02-21 19:22:34 +01:00
parent b014d31577
commit 3f2f0f984c
2 changed files with 7 additions and 9 deletions

View file

@ -1,12 +1,10 @@
<template>
<section>
<template v-if="Array.isArray(elements)">
<General v-for="element in elements" :element="element" />
</template>
<template v-else>
<General :element="elements" />
</template>
</section>
</template>
<script setup lang="ts">

View file

@ -8,7 +8,7 @@
<div class="flex-col gap-default">
<h3>{{skill.title}}</h3>
<main class="flex-col gap-sm">
<RichText v-for="(t, index) in skill.text" :key="`${t.type}-${index}`" :elements="t" />
<RichText :elements="skill.text" />
</main>
</div>
</article>