Skip to content

Commit 546c9fa

Browse files
committed
use background-image again
1 parent 425bf36 commit 546c9fa

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/components/0-Logo/Logo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.logo {
2-
/* todo: fix rewriteUrl error and use url(./logo.svg) */
2+
background-image: url("./logo.svg");
33
background-size: 200px 200px;
44
width: 200px;
55
height: 200px;

src/components/0-Logo/Logo.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import styles from './Logo.css';
33
import React, { Component } from 'react';
44

55
export default class Logo extends Component {
6-
7-
// todo: fix rewriteUrl error and use url(./logo.svg) in Logo.css
86
render() {
9-
return <div className={styles.logo} style={{'background-image': 'url("./logo.svg")'}} />;
7+
return <div className={styles.logo} />;
108
}
11-
129
};

0 commit comments

Comments
 (0)