Skip to content

Commit 6e38733

Browse files
committed
fix: add files
1 parent 652e10f commit 6e38733

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/lib/ErrorIcon/index.jsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react'
2+
import SVG from '../../assets/img-load-error.svg'
3+
const style = {
4+
border: '1px dashed #dadada',
5+
backgroundImage: `url(${SVG})`,
6+
backgroundRepeat: 'no-repeat',
7+
backgroundSize: '65% 65%',
8+
width: '100%',
9+
height: '100%',
10+
backgroundPosition: 'center'
11+
}
12+
export default function(props) {
13+
return (
14+
<div
15+
style={{
16+
...style,
17+
...props.style
18+
}}
19+
>
20+
</div>
21+
)
22+
}

0 commit comments

Comments
 (0)