Skip to content

Commit

Permalink
fix: use theme type for markdown styles
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Nov 25, 2024
1 parent 6b86ded commit 47352e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const StyledReactMarkdown = styled(ReactMarkdown, {
unstable_styleFunctionSx as StyleFunction<StyledReactMarkdownProps>,
);

const styles = (theme: any) => ({
const styles = (theme: Theme) => ({
'& table': {
borderCollapse: 'collapse',
border: `1px solid ${theme.palette.border}`,
Expand Down Expand Up @@ -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': {
Expand Down

0 comments on commit 47352e9

Please sign in to comment.