This commit is contained in:
tkrmagid-desktop
2026-04-11 14:22:48 +09:00
parent b329ccc03b
commit 4037afeb68
12 changed files with 200 additions and 86 deletions

View File

@@ -13,18 +13,6 @@ export default function TopNav({ onSearch, onHome, selectedServer }: TopNavProps
const { data: session, status } = useSession();
const [term, setTerm] = useState("");
const handleSearchClick = () => {
// 🌟 서버 선택 여부 체크
if (!selectedServer) {
alert("먼저 왼쪽 목록에서 관리할 서버를 선택해주세요!");
return;
}
if (term.trim()) {
onSearch(term);
}
};
const handleKeyDown = (e: React.KeyboardEvent) => {
if (e.key === "Enter" && term.trim()) {
onSearch(term);