Skip to content

Commit eca82b5

Browse files
committed
fix build
1 parent 2e37c2c commit eca82b5

File tree

1 file changed

+6
-7
lines changed
  • packages/react-code-blocks/src/components/Snippet

1 file changed

+6
-7
lines changed

packages/react-code-blocks/src/components/Snippet/Snippet.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,23 @@ interface Props {
1717
const SnippetWrapper = styled.div<
1818
Props & {
1919
style: any;
20-
width?: string;
2120
}
2221
>`
2322
position: relative;
24-
width: ${({ width }) => !!width ? width : 'auto'};
23+
width: ${({ width }: any) => !!width ? width : 'auto'};
2524
max-width: 100%;
2625
padding: 8pt;
2726
padding-right: calc(2 * 16pt);
28-
color: ${({ style }) => style.color};
29-
background-color: ${({ style }) => style.bgColor};
30-
border: 1px solid ${({ style }) => style.border};
27+
color: ${({ style }: any) => style.color};
28+
background-color: ${({ style }: any) => style.bgColor};
29+
border: 1px solid ${({ style }: any) => style.border};
3130
border-radius: 5px;
3231
pre {
3332
margin: 0;
3433
padding: 0;
3534
border: none;
3635
background-color: transparent;
37-
color: ${({ style }) => style.color};
36+
color: ${({ style }: any) => style.color};
3837
font-size: 0.8125rem;
3938
}
4039
pre::before {
@@ -52,7 +51,7 @@ const SnippetWrapper = styled.div<
5251
right: 0;
5352
top: -2px;
5453
transform: translateY(50%);
55-
background-color: ${({ style }) => style.bgColor};
54+
background-color: ${({ style }: any) => style.bgColor};
5655
display: inline-flex;
5756
justify-content: center;
5857
align-items: center;

0 commit comments

Comments
 (0)