chore: add some ignore on runes components

(it's just warning but it's handled as an error)

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
Florent Benoit 2024-08-19 15:30:42 +02:00 committed by Florent BENOIT
parent 8035c9a83c
commit ad288ce7f6
3 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,7 @@ function clickSettings(b: boolean) {
{@const allItemsHidden = (navigationRegistryItem.items ?? []).every(item => item.hidden)}
{#if !allItemsHidden}
<NavSection tooltip={navigationRegistryItem.name}>
<!-- svelte-ignore svelte_component_deprecated -->
<svelte:component this={navigationRegistryItem.icon.iconComponent} size={iconSize} slot="icon" />
{#if navigationRegistryItem.items}

View file

@ -373,6 +373,7 @@ const row = new TableRow<ContainerGroupInfoUI | ContainerInfoUI>({
});
let containersAndGroups: (ContainerGroupInfoUI | ContainerInfoUI)[];
// svelte-ignore reactive_declaration_non_reactive_property
$: containersAndGroups = containerGroups.map(group =>
group?.type === ContainerGroupInfoTypeUI.STANDALONE ? group.containers[0] : group,
);

View file

@ -18,6 +18,7 @@ let { entry, meta = $bindable() }: { entry: NavigationRegistryEntry; meta: Tinro
{:else if entry.icon.faIcon}
<Fa icon={entry.icon.faIcon.definition} size={entry.icon.faIcon.size} />
{:else if entry.icon.iconComponent}
<!-- svelte-ignore svelte_component_deprecated -->
<svelte:component this={entry.icon.iconComponent} size="24" />
{:else if entry.icon.iconImage && typeof entry.icon.iconImage === 'string'}
<img src={entry.icon.iconImage} width="22" height="22" alt={entry.name} />