From 9f2f0ef7a6cf124cc305dae5a9d08ecdd1ce43f8 Mon Sep 17 00:00:00 2001 From: Varun Raj Date: Sat, 28 Dec 2024 18:25:06 +0530 Subject: [PATCH] fix: gemini key validation Signed-off-by: Varun Raj --- src/components/find/FindInput.tsx | 2 +- src/components/shared/Header.tsx | 5 ++- src/config/constants/sidebarNavs.tsx | 11 +++--- src/contexts/ConfigContext.tsx | 4 ++- src/pages/_app.tsx | 11 +++--- src/pages/find/index.tsx | 52 +++++++++++++++++++++++----- 6 files changed, 61 insertions(+), 24 deletions(-) diff --git a/src/components/find/FindInput.tsx b/src/components/find/FindInput.tsx index 3fe6ec2..d0cb03e 100644 --- a/src/components/find/FindInput.tsx +++ b/src/components/find/FindInput.tsx @@ -32,7 +32,7 @@ export default function FindInput({ onSearch }: FindInputProps) { control: 'w-full border border-gray-200 rounded-md p-2', input: 'w-full border border-gray-200 rounded-md p-2 w-full', }} - placeholder='Search for people or tags' + placeholder='Search for photos, use @ to search for people' onKeyDown={(e) => { if (e.key === 'Enter') { onSearch(query); diff --git a/src/components/shared/Header.tsx b/src/components/shared/Header.tsx index 99cdf10..e8898c7 100644 --- a/src/components/shared/Header.tsx +++ b/src/components/shared/Header.tsx @@ -23,6 +23,7 @@ import Head from "next/head"; import { sidebarNavs } from "@/config/constants/sidebarNavs"; import { cn } from "@/lib/utils"; import { useRouter } from "next/router"; +import clsx from "clsx"; interface IProps { leftComponent?: React.ReactNode | string; @@ -62,7 +63,9 @@ export default function Header({ leftComponent, rightComponent, title }: IProps) {pageTitle} - Immich Power Tools )} -
+