diff --git a/src/lib/components/AbstractDropdown.svelte b/src/lib/components/AbstractDropdown.svelte index 2700e3d2..edf0f9bf 100644 --- a/src/lib/components/AbstractDropdown.svelte +++ b/src/lib/components/AbstractDropdown.svelte @@ -1,36 +1,17 @@
-

{heading}

- {#each dropdownData as dropdown} -
-
- - {dropdown.about} -
- +
diff --git a/src/lib/js/dropdowndata.js b/src/lib/js/dropdowndata.js deleted file mode 100644 index 61ca6f4a..00000000 --- a/src/lib/js/dropdowndata.js +++ /dev/null @@ -1,14 +0,0 @@ -// @ts-nocheck -export class DropdownDataElement { - /** - * @param {any} name - * @param {any} items - * @param {any} about - */ - constructor(name, items, about) { - this.items = items.map((item) => ({ value: item, name: item }), items); - this.name = name; - this.about = about; - this.selected = false; - } -} diff --git a/src/routes/firstdropdown/+page.svelte b/src/routes/firstdropdown/+page.svelte index bccdce16..6d6c0bdf 100644 --- a/src/routes/firstdropdown/+page.svelte +++ b/src/routes/firstdropdown/+page.svelte @@ -1,32 +1,35 @@ - + diff --git a/src/routes/nextdropdown/+page.svelte b/src/routes/nextdropdown/+page.svelte index 9c072883..5825d933 100644 --- a/src/routes/nextdropdown/+page.svelte +++ b/src/routes/nextdropdown/+page.svelte @@ -1,36 +1,41 @@ - +