Skip to content

Commit

Permalink
Fix context
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgraeme committed Sep 23, 2024
1 parent 9a1eef7 commit c876dda
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/components/organisms/PointsTile/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useWllSdk } from 'context/WllSdkContext';
import * as React from 'react';
import { Image, StyleSheet, View } from 'react-native';
import { useTheme } from '../../../context/ThemeContext';
import { PointsTileConfig, Tile, TileHeight } from '../../../types/tile';
import { createResponsiveStyle } from '../../../utils/responsiveHelper';
import { BaseTile, Text } from '../../atoms';
Expand All @@ -16,7 +16,7 @@ const PointsTile: React.FC<PointsTileProps> & {
Points: typeof PointsTilePoints;
Image: typeof PointsTileImage;
} = ({ tile }) => {
const { theme } = useTheme();
const { theme } = useWllSdk();
const isFullSize = tile.tileHeight === TileHeight.Full;

const styles = StyleSheet.create({
Expand Down Expand Up @@ -56,7 +56,7 @@ const PointsTileTitle: React.FC = () => {
};

const PointsTilePoints: React.FC = () => {
const { theme } = useTheme();
const { theme } = useWllSdk();
const { sectionData } = useSectionContext();
const { configuration } = useTileContext();
const {
Expand Down Expand Up @@ -102,7 +102,7 @@ type PointTileImageProps = {
};

const PointsTileImage: React.FC<PointTileImageProps> = ({ isFullSize }) => {
const { theme } = useTheme();
const { theme } = useWllSdk();
const { configuration } = useTileContext();
const { imageUrl } = configuration as PointsTileConfig;

Expand Down

0 comments on commit c876dda

Please sign in to comment.