mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 09:24:54 +10:00
v5.0.12 (#2814)
* refactor to @base-ui/react * fix all * fixes to accordion * more updates * switch to chat/completions api from openai * update version to v5.0.12
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { useLingui } from "@lingui/react";
|
||||
import { useRouter } from "@tanstack/react-router";
|
||||
import { isTheme, setThemeServerFn, themeMap } from "@/utils/theme";
|
||||
import { Combobox, type ComboboxProps } from "../ui/combobox";
|
||||
import { Combobox, type SingleComboboxProps } from "../ui/combobox";
|
||||
import { useTheme } from "./provider";
|
||||
|
||||
type Props = Omit<ComboboxProps, "options" | "value" | "onValueChange">;
|
||||
type Props = Omit<SingleComboboxProps, "options" | "value" | "onValueChange">;
|
||||
|
||||
export function ThemeCombobox(props: Props) {
|
||||
const router = useRouter();
|
||||
@@ -24,5 +24,5 @@ export function ThemeCombobox(props: Props) {
|
||||
router.invalidate();
|
||||
};
|
||||
|
||||
return <Combobox options={options} defaultValue={theme} onValueChange={onThemeChange} {...props} />;
|
||||
return <Combobox {...props} showClear={false} options={options} defaultValue={theme} onValueChange={onThemeChange} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user