fix: add an icon to the system cardsheader

This commit is contained in:
Spectralitree 2021-12-15 13:55:10 +01:00
parent 3f99593292
commit 3bd2d15e2e

View File

@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import { Card, CardBody } from 'sveltestrap'; import { Card, CardBody, CardHeader } from 'sveltestrap';
import FaAddressCard from 'svelte-icons/fa/FaAddressCard.svelte'
import CardsHeader from '../CardsHeader.svelte'; import CardsHeader from '../CardsHeader.svelte';
import Body from './Body.svelte'; import Body from './Body.svelte';
import Privacy from './Privacy.svelte'; import Privacy from './Privacy.svelte';
@ -14,7 +15,11 @@
</script> </script>
<Card class="mb-4"> <Card class="mb-4">
<CardsHeader bind:item={user} bind:loading/> <CardHeader>
<CardsHeader bind:item={user} bind:loading>
<FaAddressCard slot="icon" />
</CardsHeader>
</CardHeader>
<CardBody style="border-left: 4px solid #{user.color}"> <CardBody style="border-left: 4px solid #{user.color}">
{#if !editMode} {#if !editMode}
<Body bind:user bind:editMode bind:isPublic/> <Body bind:user bind:editMode bind:isPublic/>