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 (