chore(web): unique ID generation (#9932)

* chore(web): automatically generate unique IDs

* fix: revert changes to Slider

* chore: add test for id store
This commit is contained in:
Ben
2024-06-01 22:58:35 +00:00
committed by GitHub
parent 4e16e2520d
commit 01f52c9021
52 changed files with 83 additions and 150 deletions

View File

@@ -3,7 +3,6 @@
import Button from '../../elements/buttons/button.svelte';
import type { Color } from '$lib/components/elements/buttons/button.svelte';
export let id: string = 'confirm-dialog';
export let title = 'Confirm';
export let prompt = 'Are you sure you want to do this?';
export let confirmText = 'Confirm';
@@ -24,7 +23,7 @@
};
</script>
<FullScreenModal {title} {id} onClose={onCancel} {width}>
<FullScreenModal {title} onClose={onCancel} {width}>
<div class="text-md py-5 text-center">
<slot name="prompt">
<p>{prompt}</p>