From a25ce86ae1911b6f4586d10838040c4a4dd99a70 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sat, 25 Jan 2025 08:08:59 -0600 Subject: [PATCH] button color changes --- components/Global/helpers/icon.tsx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/components/Global/helpers/icon.tsx b/components/Global/helpers/icon.tsx index 0ebde6e6..605e27e6 100644 --- a/components/Global/helpers/icon.tsx +++ b/components/Global/helpers/icon.tsx @@ -1,8 +1,7 @@ import React from "react" import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons" -import { Colors } from "../../../enums/colors" import { useColorScheme } from "react-native"; -import { ColorTokens } from "tamagui"; +import { ColorTokens, getTokens } from "tamagui"; const smallSize = 24; @@ -10,14 +9,28 @@ const regularSize = 36; const largeSize = 48 -export default function Icon({ name, onPress, small, large, color }: { name: string, onPress?: () => void, small?: boolean, large?: boolean, color?: ColorTokens}) : React.JSX.Element { +export default function Icon({ + name, onPress, + small, + large, + color +}: { + name: string, + onPress?: () => void, + small?: boolean, + large?: boolean, + color?: ColorTokens +}) : React.JSX.Element { const isDarkMode = useColorScheme() === "dark" let size = large ? largeSize : small ? smallSize : regularSize return (