modified: messages/en-US.json

modified:   src/components/tags/autocomplete.tsx
This commit is contained in:
Lokowitz 2025-05-17 20:34:01 +00:00
parent 547e777eb0
commit ae4ef4eb99
2 changed files with 6 additions and 3 deletions

View file

@ -364,7 +364,7 @@
"inviteRemoveErrorDescription": "An error occurred while removing the invitation.",
"inviteRemoved": "Invitation removed",
"inviteRemovedDescription": "The invitation for {email} has been removed.",
"inviteQuestionRemove ": "Are you sure you want to remove the invitation {email}?",
"inviteQuestionRemove": "Are you sure you want to remove the invitation {email}?",
"inviteMessageRemove": "Once removed, this invitation will no longer be valid. You can always re-invite the user later.",
"inviteMessageConfirm": "To confirm, please type the email address of the invitation below.",
"inviteQuestionRegenerate": "Are you sure you want to regenerate the invitation for {email}? This will revoke the previous invitation.",
@ -906,5 +906,6 @@
"settings": "Settings",
"usersAll": "All Users",
"license": "License",
"pangolinDashboard": "Dashboard - Pangolin"
"pangolinDashboard": "Dashboard - Pangolin",
"noResults": "No results found."
}

View file

@ -4,6 +4,7 @@ import { TagInputStyleClassesProps, type Tag as TagType } from "./tag-input";
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";
import { Button } from "../ui/button";
import { cn } from "@app/lib/cn";
import { useTranslations } from 'next-intl';
type AutocompleteProps = {
tags: TagType[];
@ -40,6 +41,7 @@ export const Autocomplete: React.FC<AutocompleteProps> = ({
const triggerRef = useRef<HTMLButtonElement | null>(null);
const inputRef = useRef<HTMLInputElement | null>(null);
const popoverContentRef = useRef<HTMLDivElement | null>(null);
const t = useTranslations();
const [popoverWidth, setPopoverWidth] = useState<number>(0);
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
@ -342,7 +344,7 @@ export const Autocomplete: React.FC<AutocompleteProps> = ({
</div>
) : (
<div className="py-6 text-center text-sm">
No results found.
{t('noResults')}
</div>
)}
</div>