Try having images under src/ for relative path

This commit is contained in:
Melvin Valster
2019-07-23 13:47:00 +02:00
parent 819ed3b016
commit d375fb9408
50 changed files with 137 additions and 31 deletions
+5 -4
View File
@@ -90,10 +90,11 @@ export class Calculator extends React.PureComponent<Props> {
Points: {availablePoints}
</div>
<div>
<a href="/shaman/-5505000055523051-55">Shaman test</a>
<a href="/shaman/-5595000055523051-55">Shaman test broken</a>
</div>
<ul>
<li><a href="/shaman/-5505000055523051-55">Shaman test</a></li>
<li><a href="/shaman/-5595000055523051-55">Shaman test broken</a></li>
<li><a href="/rogue/-005055-50205302332212051">Rogue can unlearn first row</a></li>
</ul>
</div>
)
}
+2 -2
View File
@@ -34,7 +34,7 @@
&--golden {
.icon__frame {
background-image: url('/images/icons/large/gold.png');
background-image: url('../images/icons/large/gold.png');
}
}
@@ -50,7 +50,7 @@
height: 44px;
top: -2px;
left: -2px;
background-image: url('/images/icons/large/default.png');
background-image: url('../images/icons/large/default.png');
background-repeat: no-repeat;
background-size: contain;
}
+1 -1
View File
@@ -58,7 +58,7 @@
height: 46px;
bottom: -1px;
left: -4px;
background-image: url('/images/icons/large/default.png');
background-image: url('../images/icons/large/default.png');
background-size: cover;
&:after {
+1 -1
View File
@@ -25,7 +25,7 @@ export const TalentTree: React.FC<Props> = ({ specId, knownTalents, availablePoi
)
const bodyStyle = {
backgroundImage: `url(/images/specs/${specId}.jpg)`
backgroundImage: `url(${require(`../images/specs/${specId}.jpg`)})`
}
const arrows = talents