Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmost committed Jul 26, 2023
1 parent 2e37c2c commit eca82b5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/react-code-blocks/src/components/Snippet/Snippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,23 @@ interface Props {
const SnippetWrapper = styled.div<
Props & {
style: any;
width?: string;
}
>`
position: relative;
width: ${({ width }) => !!width ? width : 'auto'};
width: ${({ width }: any) => !!width ? width : 'auto'};
max-width: 100%;
padding: 8pt;
padding-right: calc(2 * 16pt);
color: ${({ style }) => style.color};
background-color: ${({ style }) => style.bgColor};
border: 1px solid ${({ style }) => style.border};
color: ${({ style }: any) => style.color};
background-color: ${({ style }: any) => style.bgColor};
border: 1px solid ${({ style }: any) => style.border};
border-radius: 5px;
pre {
margin: 0;
padding: 0;
border: none;
background-color: transparent;
color: ${({ style }) => style.color};
color: ${({ style }: any) => style.color};
font-size: 0.8125rem;
}
pre::before {
Expand All @@ -52,7 +51,7 @@ const SnippetWrapper = styled.div<
right: 0;
top: -2px;
transform: translateY(50%);
background-color: ${({ style }) => style.bgColor};
background-color: ${({ style }: any) => style.bgColor};
display: inline-flex;
justify-content: center;
align-items: center;
Expand Down

1 comment on commit eca82b5

@vercel
Copy link

@vercel vercel bot commented on eca82b5 Jul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.