Skip to content

Commit db3b911

Browse files
Fixing types
1 parent e968c9e commit db3b911

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/components/Message/MessageSimple/MessageActionSheet.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import type {
1717
DefaultUserType,
1818
UnknownType,
1919
} from '../../../types/types';
20+
import type { Reaction } from 'src/components/Reaction/ReactionList';
21+
2022
const ActionSheetButtonContainer = styled.View`
2123
align-items: center;
2224
background-color: #fff;
@@ -117,7 +119,7 @@ export type MessageActionSheetProps<
117119
* React useState hook setter function that toggles action sheet visibility
118120
*/
119121
setActionSheetVisible: React.Dispatch<React.SetStateAction<boolean>>;
120-
supportedReactions: Array<unknown>;
122+
supportedReactions: Reaction[];
121123
/**
122124
* Style object for action sheet (used to style message actions)
123125
* Supported styles: https://github.com/beefe/react-native-actionsheet/blob/master/lib/styles.js

src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`TypingIndicator should match typing indicator snapshot 1`] = `
55
style={
66
Array [
77
Object {
8-
"alignItems": "center",
8+
"alignItems": "flex-end",
99
"flexDirection": "row",
1010
"justifyContent": "flex-start",
1111
},
@@ -26,7 +26,7 @@ exports[`TypingIndicator should match typing indicator snapshot 1`] = `
2626
accessibilityLabel="initials"
2727
onError={[Function]}
2828
resizeMethod="resize"
29-
size={24}
29+
size={20}
3030
source={
3131
Object {
3232
"uri": "https://i.imgur.com/SLx06PP.png",
@@ -35,9 +35,9 @@ exports[`TypingIndicator should match typing indicator snapshot 1`] = `
3535
style={
3636
Array [
3737
Object {
38-
"borderRadius": 12,
39-
"height": 24,
40-
"width": 24,
38+
"borderRadius": 10,
39+
"height": 20,
40+
"width": 20,
4141
},
4242
]
4343
}
@@ -57,7 +57,7 @@ exports[`TypingIndicator should match typing indicator snapshot 1`] = `
5757
accessibilityLabel="initials"
5858
onError={[Function]}
5959
resizeMethod="resize"
60-
size={24}
60+
size={20}
6161
source={
6262
Object {
6363
"uri": "https://i.imgur.com/T68W8nR_d.webp?maxwidth=728&fidelity=grand",
@@ -66,9 +66,9 @@ exports[`TypingIndicator should match typing indicator snapshot 1`] = `
6666
style={
6767
Array [
6868
Object {
69-
"borderRadius": 12,
70-
"height": 24,
71-
"width": 24,
69+
"borderRadius": 10,
70+
"height": 20,
71+
"width": 20,
7272
},
7373
]
7474
}

0 commit comments

Comments
 (0)