Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: search template is missing translations references #1266

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/routes/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function ActualSearch(props: { initialValue?: string }) {
type="text"
value={searchValue()}
onInput={(e) => setSearchValue(e.currentTarget.value)}
placeholder="Name, address, invoice..."
placeholder={i18n.t("send.search.placeholder") + " ..."}
autofocus
autocomplete="off"
autocorrect="off"
Expand All @@ -343,7 +343,7 @@ function ActualSearch(props: { initialValue?: string }) {
onClick={handlePaste}
>
<LucideClipboard class="h-4 w-4" />
Paste
{i18n.t("send.search.paste")}
</button>
</Show>
<Show when={!!searchValue()}>
Expand All @@ -359,14 +359,16 @@ function ActualSearch(props: { initialValue?: string }) {
<div class="flex-0 flex w-full">
<Show when={searchState() !== "notsendable"}>
<Button intent="green" onClick={handleContinue}>
Continue
{i18n.t("common.continue")}
</Button>
</Show>
</div>
<Show when={searchState() !== "sendable"}>
<VStack>
<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}>
<For each={filteredContacts()}>
{(contact) => (
Expand All @@ -385,7 +387,7 @@ function ActualSearch(props: { initialValue?: string }) {
<Suspense fallback={<LoadingShimmer />}>
<Show when={!!debouncedSearchValue()}>
<h2 class="py-2 text-xl font-semibold">
Global Search
{i18n.t("send.search.global_search")}
</h2>
<GlobalSearch
searchValue={debouncedSearchValue()}
Expand Down
Loading