Skip to content

Commit

Permalink
fix: styling issue with base banner
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgraeme committed Jan 27, 2025
1 parent 02e3fba commit 59bc60d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions lib/components/atoms/BaseBanner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import React, { createContext, useContext } from 'react';
import {
Pressable,
StyleProp,
StyleSheet,
View,
ViewStyle,
} from 'react-native';
import { Pressable, StyleProp, StyleSheet, ViewStyle } from 'react-native';
import { MAX_WIDTH } from '../../../constants';
import { useWllSdk } from '../../../context/WllSdkContext';
import { useHandleTilePress } from '../../../hooks/useHandleTilePress';
import { BannerTileConfig, Tile } from '../../../types/tile';
import { Row } from '../Primatives';

const BannerContext = createContext<Tile | null>(null);

Expand Down Expand Up @@ -67,7 +62,9 @@ const BaseBanner: React.FC<BaseBannerProps> = ({
`${title}${!hasCTA && ctaLink ? ' - Click to open' : ''}`
}
>
<View style={styles.contentContainer}>{children}</View>
<Row align="center" justify="start">
{children}
</Row>
</Pressable>
</BannerContext.Provider>
);
Expand All @@ -82,9 +79,6 @@ const styles = StyleSheet.create({
justifyContent: 'space-between',
overflow: 'hidden',
},
contentContainer: {
// Add styles for content container if needed
},
});

export default BaseBanner;

0 comments on commit 59bc60d

Please sign in to comment.