From 47352e9a616aa104216ffc91f03a1e40f92a92d0 Mon Sep 17 00:00:00 2001 From: Heikki Hellgren Date: Mon, 25 Nov 2024 14:34:36 +0200 Subject: [PATCH] fix: use theme type for markdown styles --- .../src/components/MarkdownRenderer/MarkdownRenderer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/qeta-react/src/components/MarkdownRenderer/MarkdownRenderer.tsx b/plugins/qeta-react/src/components/MarkdownRenderer/MarkdownRenderer.tsx index 83e50925..d331429f 100644 --- a/plugins/qeta-react/src/components/MarkdownRenderer/MarkdownRenderer.tsx +++ b/plugins/qeta-react/src/components/MarkdownRenderer/MarkdownRenderer.tsx @@ -27,7 +27,7 @@ const StyledReactMarkdown = styled(ReactMarkdown, { unstable_styleFunctionSx as StyleFunction, ); -const styles = (theme: any) => ({ +const styles = (theme: Theme) => ({ '& table': { borderCollapse: 'collapse', border: `1px solid ${theme.palette.border}`, @@ -65,7 +65,7 @@ const styles = (theme: any) => ({ }, '& blockquote': { backgroundColor: theme.palette.background.paper, - border: `.1em solid ${theme.palette.divider}`, + border: `1px solid ${theme.palette.divider}`, padding: '1em', }, '& ol, ul': {