feat: improve consistency and design (#1867)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
ManuelandMeier Lukas authored and GitHub committed 2025-01-31 23:32:08 +01:00
1 parent 6a9b65f219
commit 5f36d8b125
21 files changed
+216 -99

No files matched your search

+3 -1
View File
@@ -10,9 +10,10 @@ import { IconSearch } from "@tabler/icons-react";
interface SearchInputProps {
defaultValue?: string;
placeholder: string;
flexExpand?: boolean;
}
export const SearchInput = ({ placeholder, defaultValue }: SearchInputProps) => {
export const SearchInput = ({ placeholder, defaultValue, flexExpand = false }: SearchInputProps) => {
// eslint-disable-next-line @typescript-eslint/unbound-method
const { replace } = useRouter();
const pathName = usePathname();
@@ -40,6 +41,7 @@ export const SearchInput = ({ placeholder, defaultValue }: SearchInputProps) =>
defaultValue={defaultValue}
onChange={handleSearch}
placeholder={placeholder}
style={{ flex: flexExpand ? "1" : undefined }}
/>
);
};