From f2914761fa1051b56628f014a215c50b6219fcc7 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 27 Dec 2023 20:10:53 -0800 Subject: [PATCH] lint, fix tests --- __tests__/lib/string.test.ts | 34 +++++++++---------- .../util/post-embeds/ExternalPlayerEmbed.tsx | 8 +---- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/__tests__/lib/string.test.ts b/__tests__/lib/string.test.ts index c52d4934b9..372f4527bb 100644 --- a/__tests__/lib/string.test.ts +++ b/__tests__/lib/string.test.ts @@ -579,85 +579,85 @@ describe('parseEmbedPlayerFromUrl', () => { }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, undefined, undefined, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, undefined, undefined, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'giphy_gif', + type: 'gif', playerUri: 'https://i.giphy.com/media/gifId/giphy.gif', }, { - type: 'tenor_gif', + type: 'gif', playerUri: 'https://media1.tenor.com/m/gifId/someName.gif', }, undefined, undefined, { - type: 'tenor_gif', + type: 'gif', playerUri: 'https://tenor.com/view/gifId.gif', }, undefined, undefined, { - type: 'tenor_gif', + type: 'gif', playerUri: 'https://tenor.com/view/gifId.gif', }, { - type: 'tenor_gif', + type: 'gif', playerUri: 'https://c.tenor.com/gifId/tenor.gif', }, { - type: 'tenor_gif', + type: 'gif', playerUri: 'https://c.tenor.com/gifId/tenor.webp', }, undefined, diff --git a/src/view/com/util/post-embeds/ExternalPlayerEmbed.tsx b/src/view/com/util/post-embeds/ExternalPlayerEmbed.tsx index a3d10f1a74..d6899367df 100644 --- a/src/view/com/util/post-embeds/ExternalPlayerEmbed.tsx +++ b/src/view/com/util/post-embeds/ExternalPlayerEmbed.tsx @@ -201,9 +201,7 @@ export function ExternalPlayer({ }, styles.topRadius, ]} - source={{ - uri: link.thumb, - }} + source={{uri: link.thumb}} accessibilityIgnoresInvertColors /> )} @@ -240,10 +238,6 @@ const styles = StyleSheet.create({ alignItems: 'center', backgroundColor: 'rgba(0,0,0,0.5)', }, - imageContainer: { - width: '100%', - overflow: 'hidden', - }, overlayLayer: { zIndex: 2, },