Skip to content

Commit a715502

Browse files
fix: preview msg + channellist container (#910)
1 parent d7e53cb commit a715502

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

package/src/components/ChannelList/ChannelListLoadingIndicator.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ const styles = StyleSheet.create({
1313
export const ChannelListLoadingIndicator: React.FC = () => {
1414
const {
1515
theme: {
16+
channelListLoadingIndicator: { container },
1617
colors: { white_snow },
1718
},
1819
} = useTheme();
1920
const { numberOfSkeletons, Skeleton } = useChannelsContext();
2021

2122
return (
2223
<View
23-
style={[styles.container, { backgroundColor: white_snow }]}
24+
style={[styles.container, { backgroundColor: white_snow }, container]}
2425
testID='channel-list-loading-indicator'
2526
>
2627
{Array.from(Array(numberOfSkeletons)).map((_, index) => (

package/src/components/ChannelPreview/ChannelPreviewMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const ChannelPreviewMessage: React.FC<ChannelPreviewMessageProps> = ({
5151
preview.text ? (
5252
<Text
5353
key={`${preview.text}_${index}`}
54-
style={[{ color: grey }, preview.bold ? styles.bold : {}]}
54+
style={[{ color: grey }, preview.bold ? styles.bold : {}, message]}
5555
>
5656
{preview.text}
5757
</Text>

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export type Theme = {
110110
container: ViewStyle;
111111
errorText: TextStyle;
112112
};
113+
channelListLoadingIndicator: {
114+
container: ViewStyle;
115+
};
113116
channelListMessenger: {
114117
flatList: ViewStyle;
115118
flatListContent: ViewStyle;
@@ -531,6 +534,9 @@ export const defaultTheme: Theme = {
531534
container: {},
532535
errorText: {},
533536
},
537+
channelListLoadingIndicator: {
538+
container: {},
539+
},
534540
channelListMessenger: {
535541
flatList: {},
536542
flatListContent: {},

0 commit comments

Comments
 (0)