Skip to content

Commit 0fd57ee

Browse files
author
tfomkin
committed
fix: removed AppMarkDownView restProps spread to prevent key leakage
1 parent 626cd98 commit 0fd57ee

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

libs/mobile/shared/features/markdown-view/src/lib/component.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export function AppMarkdownView({
3939
onCitationPress,
4040
isContentReady,
4141
textColor: elementTextColor,
42-
...restProps
4342
}: AppMarkdownViewProps): ReactElement {
4443
const { isDarkColorScheme } = useColorScheme();
4544
const textColor = elementTextColor || (isDarkColorScheme ? colors.darkTextPrimary : colors.textPrimary);
@@ -220,7 +219,6 @@ export function AppMarkdownView({
220219
code_inline: { backgroundColor: isDarkColorScheme ? colors.gray700 : colors.gray75 },
221220
}}
222221
rules={markdownRules}
223-
{...restProps}
224222
markdownit={markdownItInstance}
225223
/>
226224
);

0 commit comments

Comments
 (0)