Try having images under src/ for relative path
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user