implemented plus button on budget screen and routing for the plus button

This commit is contained in:
thschleicher 2024-01-02 10:14:36 +01:00 committed by Jakob Stornig
parent 85c737e66c
commit 6ee1c01d6a
6 changed files with 45 additions and 16 deletions

View file

@ -7,7 +7,7 @@ import colors from "../constants/colors";
* @returns
*/
export function useThemeColor(colorName: keyof typeof colors.light & keyof typeof colors.dark): string {
console.warn("useThemeColor is depreciated. Use useTheme().colors instead")
console.log("useThemeColor is depreciated. Use useTheme().colors instead")
const theme = useColorScheme() ?? "light";
return colors[theme][colorName];
}