chore(web): simpler unique ID generation (#9945)

This commit is contained in:
Ben
2024-06-02 16:41:44 +00:00
committed by GitHub
parent d1135db8cf
commit 1323c7ee88
6 changed files with 8 additions and 36 deletions

View File

@@ -3,7 +3,7 @@
import { fade } from 'svelte/transition';
import FocusTrap from '$lib/components/shared-components/focus-trap.svelte';
import ModalHeader from '$lib/components/shared-components/modal-header.svelte';
import { uniqueIdStore } from '$lib/stores/unique-id.store';
import { generateId } from '$lib/utils/generate-id';
export let onClose: () => void;
export let title: string;
@@ -27,7 +27,7 @@
/**
* Unique identifier for the modal.
*/
let id: string = uniqueIdStore.generateId();
let id: string = generateId();
$: titleId = `${id}-title`;
$: isStickyBottom = !!$$slots['sticky-bottom'];