Skip to content

Commit 19b59c6

Browse files
committed
fix: tests and lint errors
1 parent b33e177 commit 19b59c6

File tree

4 files changed

+2
-108
lines changed

4 files changed

+2
-108
lines changed

package/src/components/Message/hooks/useShouldUseOverlayStyles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useIsOverlayActive } from '../../../state-store';
33

44
export const useShouldUseOverlayStyles = () => {
55
const { message } = useMessageContext();
6-
const { active, closing } = useIsOverlayActive(message.id);
6+
const { active, closing } = useIsOverlayActive(message?.id);
77

88
return active && !closing;
99
};

package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -814,16 +814,6 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
814814
},
815815
],
816816
},
817-
{
818-
"overflow": "visible",
819-
"shadowColor": "white",
820-
"shadowOffset": {
821-
"height": 4,
822-
"width": 0,
823-
},
824-
"shadowOpacity": 0.4,
825-
"shadowRadius": 10,
826-
},
827817
]
828818
}
829819
>
@@ -886,16 +876,6 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
886876
},
887877
],
888878
},
889-
{
890-
"overflow": "visible",
891-
"shadowColor": "white",
892-
"shadowOffset": {
893-
"height": 4,
894-
"width": 0,
895-
},
896-
"shadowOpacity": 0.4,
897-
"shadowRadius": 10,
898-
},
899879
]
900880
}
901881
>
@@ -1731,16 +1711,6 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
17311711
},
17321712
],
17331713
},
1734-
{
1735-
"overflow": "visible",
1736-
"shadowColor": "white",
1737-
"shadowOffset": {
1738-
"height": 4,
1739-
"width": 0,
1740-
},
1741-
"shadowOpacity": 0.4,
1742-
"shadowRadius": 10,
1743-
},
17441714
]
17451715
}
17461716
>
@@ -1803,16 +1773,6 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
18031773
},
18041774
],
18051775
},
1806-
{
1807-
"overflow": "visible",
1808-
"shadowColor": "white",
1809-
"shadowOffset": {
1810-
"height": 4,
1811-
"width": 0,
1812-
},
1813-
"shadowOpacity": 0.4,
1814-
"shadowRadius": 10,
1815-
},
18161776
]
18171777
}
18181778
>
@@ -2648,16 +2608,6 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
26482608
},
26492609
],
26502610
},
2651-
{
2652-
"overflow": "visible",
2653-
"shadowColor": "white",
2654-
"shadowOffset": {
2655-
"height": 4,
2656-
"width": 0,
2657-
},
2658-
"shadowOpacity": 0.4,
2659-
"shadowRadius": 10,
2660-
},
26612611
]
26622612
}
26632613
>
@@ -2720,16 +2670,6 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
27202670
},
27212671
],
27222672
},
2723-
{
2724-
"overflow": "visible",
2725-
"shadowColor": "white",
2726-
"shadowOffset": {
2727-
"height": 4,
2728-
"width": 0,
2729-
},
2730-
"shadowOpacity": 0.4,
2731-
"shadowRadius": 10,
2732-
},
27332673
]
27342674
}
27352675
>

package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -812,16 +812,6 @@ exports[`SendButton should render a SendButton 1`] = `
812812
},
813813
],
814814
},
815-
{
816-
"overflow": "visible",
817-
"shadowColor": "white",
818-
"shadowOffset": {
819-
"height": 4,
820-
"width": 0,
821-
},
822-
"shadowOpacity": 0.4,
823-
"shadowRadius": 10,
824-
},
825815
]
826816
}
827817
>
@@ -884,16 +874,6 @@ exports[`SendButton should render a SendButton 1`] = `
884874
},
885875
],
886876
},
887-
{
888-
"overflow": "visible",
889-
"shadowColor": "white",
890-
"shadowOffset": {
891-
"height": 4,
892-
"width": 0,
893-
},
894-
"shadowOpacity": 0.4,
895-
"shadowRadius": 10,
896-
},
897877
]
898878
}
899879
>
@@ -1727,16 +1707,6 @@ exports[`SendButton should render a disabled SendButton 1`] = `
17271707
},
17281708
],
17291709
},
1730-
{
1731-
"overflow": "visible",
1732-
"shadowColor": "white",
1733-
"shadowOffset": {
1734-
"height": 4,
1735-
"width": 0,
1736-
},
1737-
"shadowOpacity": 0.4,
1738-
"shadowRadius": 10,
1739-
},
17401710
]
17411711
}
17421712
>
@@ -1799,16 +1769,6 @@ exports[`SendButton should render a disabled SendButton 1`] = `
17991769
},
18001770
],
18011771
},
1802-
{
1803-
"overflow": "visible",
1804-
"shadowColor": "white",
1805-
"shadowOffset": {
1806-
"height": 4,
1807-
"width": 0,
1808-
},
1809-
"shadowOpacity": 0.4,
1810-
"shadowRadius": 10,
1811-
},
18121772
]
18131773
}
18141774
>

package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import React, { useEffect, useMemo } from 'react';
2-
import {
3-
Platform,
4-
Pressable,
5-
StyleSheet,
6-
useWindowDimensions,
7-
View,
8-
} from 'react-native';
2+
import { Platform, Pressable, StyleSheet, useWindowDimensions, View } from 'react-native';
93
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
104
import Animated, {
115
clamp,

0 commit comments

Comments
 (0)