diff --git a/src/lib/components/ui/CharacterTypeahead.svelte b/src/lib/components/ui/CharacterTypeahead.svelte new file mode 100644 index 00000000..a8aa39ba --- /dev/null +++ b/src/lib/components/ui/CharacterTypeahead.svelte @@ -0,0 +1,191 @@ + + + + + +
+ + {#if isLoading} + ... + {/if} +
+ + diff --git a/src/routes/(app)/database/weapons/new/+page.svelte b/src/routes/(app)/database/weapons/new/+page.svelte index 1b945126..af297be1 100644 --- a/src/routes/(app)/database/weapons/new/+page.svelte +++ b/src/routes/(app)/database/weapons/new/+page.svelte @@ -14,6 +14,7 @@ import Button from '$lib/components/ui/Button.svelte' import ValidatedInput from '$lib/components/ui/ValidatedInput.svelte' import TagInput from '$lib/components/ui/TagInput.svelte' + import CharacterTypeahead from '$lib/components/ui/CharacterTypeahead.svelte' import { entityAdapter } from '$lib/api/adapters/entity.adapter' import { getRarityOptions } from '$lib/utils/rarity' @@ -285,6 +286,12 @@ + + + + + +