fix bug themes

This commit is contained in:
2025-11-19 17:11:10 +07:00
parent d8874fbe60
commit 7cb35efd30
6 changed files with 17 additions and 19 deletions

View File

@@ -5,11 +5,11 @@ import { ThemedText } from '@/components/themed-text';
import { ThemedView } from '@/components/themed-view';
import { IconSymbol } from '@/components/ui/icon-symbol';
import { Colors } from '@/constants/theme';
import { useColorScheme } from '@/hooks/use-color-scheme';
import { useColorScheme } from '@/hooks/use-theme-context';
export function Collapsible({ children, title }: PropsWithChildren & { title: string }) {
const [isOpen, setIsOpen] = useState(false);
const theme = useColorScheme() ?? 'light';
const theme = useColorScheme();
return (
<ThemedView>