mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
fix: search template is missing translations references
This commit is contained in:
committed by
benthecarman
parent
0b224f4a8d
commit
6b292dee70
@@ -331,7 +331,7 @@ function ActualSearch(props: { initialValue?: string }) {
|
|||||||
type="text"
|
type="text"
|
||||||
value={searchValue()}
|
value={searchValue()}
|
||||||
onInput={(e) => setSearchValue(e.currentTarget.value)}
|
onInput={(e) => setSearchValue(e.currentTarget.value)}
|
||||||
placeholder="Name, address, invoice..."
|
placeholder={i18n.t("send.search.placeholder") + " ..."}
|
||||||
autofocus
|
autofocus
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
@@ -343,7 +343,7 @@ function ActualSearch(props: { initialValue?: string }) {
|
|||||||
onClick={handlePaste}
|
onClick={handlePaste}
|
||||||
>
|
>
|
||||||
<LucideClipboard class="h-4 w-4" />
|
<LucideClipboard class="h-4 w-4" />
|
||||||
Paste
|
{i18n.t("send.search.paste")}
|
||||||
</button>
|
</button>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={!!searchValue()}>
|
<Show when={!!searchValue()}>
|
||||||
@@ -359,14 +359,16 @@ function ActualSearch(props: { initialValue?: string }) {
|
|||||||
<div class="flex-0 flex w-full">
|
<div class="flex-0 flex w-full">
|
||||||
<Show when={searchState() !== "notsendable"}>
|
<Show when={searchState() !== "notsendable"}>
|
||||||
<Button intent="green" onClick={handleContinue}>
|
<Button intent="green" onClick={handleContinue}>
|
||||||
Continue
|
{i18n.t("common.continue")}
|
||||||
</Button>
|
</Button>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
<Show when={searchState() !== "sendable"}>
|
<Show when={searchState() !== "sendable"}>
|
||||||
<VStack>
|
<VStack>
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<h2 class="text-xl font-semibold">Contacts</h2>
|
<h2 class="text-xl font-semibold">
|
||||||
|
{i18n.t("send.search.contacts")}
|
||||||
|
</h2>
|
||||||
<Show when={contacts() && contacts().length > 0}>
|
<Show when={contacts() && contacts().length > 0}>
|
||||||
<For each={filteredContacts()}>
|
<For each={filteredContacts()}>
|
||||||
{(contact) => (
|
{(contact) => (
|
||||||
@@ -385,7 +387,7 @@ function ActualSearch(props: { initialValue?: string }) {
|
|||||||
<Suspense fallback={<LoadingShimmer />}>
|
<Suspense fallback={<LoadingShimmer />}>
|
||||||
<Show when={!!debouncedSearchValue()}>
|
<Show when={!!debouncedSearchValue()}>
|
||||||
<h2 class="py-2 text-xl font-semibold">
|
<h2 class="py-2 text-xl font-semibold">
|
||||||
Global Search
|
{i18n.t("send.search.global_search")}
|
||||||
</h2>
|
</h2>
|
||||||
<GlobalSearch
|
<GlobalSearch
|
||||||
searchValue={debouncedSearchValue()}
|
searchValue={debouncedSearchValue()}
|
||||||
|
|||||||
Reference in New Issue
Block a user