Template
Add prettier
This commit is contained in:
1 parent
db606f2e2a
commit
5a821fc6b5
16 files changed
+115
-81
No files matched your search
@@ -8,7 +8,7 @@ import { useColorScheme } from '@/hooks/useColorScheme';
|
||||
|
||||
export function useThemeColor(
|
||||
props: { light?: string; dark?: string },
|
||||
colorName: keyof typeof Colors.light & keyof typeof Colors.dark
|
||||
colorName: keyof typeof Colors.light & keyof typeof Colors.dark,
|
||||
) {
|
||||
const theme = useColorScheme() ?? 'light';
|
||||
const colorFromProps = props[theme];
|
||||
|
||||
Reference in new issue
Block a user