mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-11 13:46:17 +00:00
fix: don't create a new store for each banner
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { slide } from 'svelte/transition';
|
||||
import { cubicInOut } from 'svelte/easing';
|
||||
import { PersistedState } from 'runed';
|
||||
import type { WithChildren } from '$types';
|
||||
import Info from 'virtual:icons/material-symbols/info-outline';
|
||||
import Warning from 'virtual:icons/material-symbols/warning-outline';
|
||||
import Error from 'virtual:icons/material-symbols/error-outline';
|
||||
import Close from 'virtual:icons/material-symbols/close';
|
||||
|
||||
const readBannerIds = new PersistedState<string[]>('read_banner_ids', []);
|
||||
import { readBannerIds } from '$stores';
|
||||
|
||||
type Props = {
|
||||
type: 'info' | 'warning' | 'error';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { PersistedState } from 'runed';
|
||||
|
||||
export const theme = new PersistedState<'light' | 'dark'>('theme', 'light');
|
||||
|
||||
export const readBannerIds = new PersistedState<string[]>('read_banner_ids', []);
|
||||
|
||||
Reference in New Issue
Block a user