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
+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