Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Jun 3, 2024
1 parent e0dbcc4 commit c69ec3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/components/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ export const Icon: FC<IconProps> = ({
preventScaling,
testID,
}) => {
const { Icon: IconSettings, allowDarkMode } = useContext(SettingsContext)
const context = useContext(SettingsContext)
console.log(context)

const globalMaxWidth = IconSettings?.maxWidth || 10
console.log('allowDarkMode', allowDarkMode)
const globalMaxWidth = context?.Icon?.maxWidth || 10
console.log('allowDarkMode', context?.allowDarkMode)
console.log('globalMaxWidth', globalMaxWidth)

const colorScheme = useColorScheme()
Expand Down

0 comments on commit c69ec3f

Please sign in to comment.