Create EditButton component

This commit is contained in:
freearhey 2023-10-05 05:27:51 +03:00
parent f0ff03f9cf
commit f99b1009c2
3 changed files with 36 additions and 2 deletions

View file

@ -2,6 +2,7 @@
import GuideItem from '~/components/GuideItem.svelte'
import StreamItem from '~/components/StreamItem.svelte'
import HTMLPreview from '~/components/HTMLPreview.svelte'
import EditButton from '~/components/EditButton.svelte'
import NavBar from '~/components/NavBar.svelte'
import { onMount } from 'svelte'
import { fetchChannels, channels } from '~/store'
@ -51,6 +52,9 @@
<div class="w-1/3 overflow-hidden">
<h1 class="text-l font-medium text-gray-900 dark:text-white">{channel.name}</h1>
</div>
<div class="inline-flex w-1/3 justify-end space-x-3">
<EditButton {channel} />
</div>
</div>
<div class="overflow-y-auto overflow-x-hidden w-full p-10">
<HTMLPreview data={channel} />