-
Notifications
You must be signed in to change notification settings - Fork 375
fix: theme for MessageList and SendMessageDisallowedIndicator #2470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,14 +21,14 @@ const styles = StyleSheet.create({ | |
| const LoadingIndicatorWrapper: React.FC<{ text: string }> = ({ text }) => { | ||
| const { | ||
| theme: { | ||
| colors: { black }, | ||
| colors: { black, white_snow }, | ||
| loadingIndicator: { container, loadingText }, | ||
| }, | ||
| } = useTheme(); | ||
|
|
||
| return ( | ||
| <View style={[styles.container, container]}> | ||
| <Spinner /> | ||
| <View style={[styles.container, { backgroundColor: white_snow }, container]}> | ||
| <Spinner height={20} width={20} /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Looking at this, it seems like the spinner component itself is bad to me.. the style by default has height and width of 16, but the icon doesnt have.. so its easier if we pass a default of 16 to the icon when no prop is passed and as a long term view, better |
||
| <Text style={[styles.loadingText, { color: black }, loadingText]} testID='loading'> | ||
| {text} | ||
| </Text> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed in TSMessagingApp. Since removing it will give us a fair idea about the component's default theme.