fix(pdf): fix react-pdf svg type compilation error
This commit is contained in:
@@ -316,7 +316,7 @@ const parseSvgPaths = (filePath: string) => {
|
|||||||
|
|
||||||
const VectorLogo = ({ paths, style }: { paths: { d: string; fill: string }[]; style: any }) => (
|
const VectorLogo = ({ paths, style }: { paths: { d: string; fill: string }[]; style: any }) => (
|
||||||
<Svg viewBox="0 0 295 99" style={style}>
|
<Svg viewBox="0 0 295 99" style={style}>
|
||||||
<G fillRule="evenodd" clipRule="evenodd">
|
<G {...({ fillRule: 'evenodd', clipRule: 'evenodd' } as any)}>
|
||||||
{paths.map((p, i) => (
|
{paths.map((p, i) => (
|
||||||
<Path key={i} d={p.d} fill={p.fill} />
|
<Path key={i} d={p.d} fill={p.fill} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user