mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-23 11:01:03 +00:00
fix: resolve all issues in npm run check (#70)
Co-authored-by: Ax333l <main@axelen.xyz>
This commit is contained in:
@@ -7,17 +7,29 @@
|
||||
</script>
|
||||
|
||||
<button on:click>
|
||||
<svelte:element
|
||||
this={href ? 'a' : 'div'}
|
||||
{href}
|
||||
{target}
|
||||
class={type}
|
||||
>
|
||||
{#if icon}
|
||||
<img src="../icons/{icon}.svg" alt={icon} />
|
||||
{/if}
|
||||
<slot />
|
||||
</svelte:element>
|
||||
{#if href}
|
||||
<a
|
||||
{href}
|
||||
{target}
|
||||
{...$$restProps}
|
||||
class={type}
|
||||
>
|
||||
{#if icon}
|
||||
<img src="../icons/{icon}.svg" alt={icon} />
|
||||
{/if}
|
||||
<slot />
|
||||
</a>
|
||||
{:else}
|
||||
<div
|
||||
{...$$restProps}
|
||||
class={type}
|
||||
>
|
||||
{#if icon}
|
||||
<img src="../icons/{icon}.svg" alt={icon} />
|
||||
{/if}
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
// See: https://github.com/JonasKruckenberg/imagetools/blob/main/docs/directives.md#picture
|
||||
export let data;
|
||||
import type { Picture } from 'vite-imagetools';
|
||||
export let data: Picture;
|
||||
export let alt: string;
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user