fix: change icon paths to _static

This commit is contained in:
Michael Zetterberg
2024-04-17 17:29:18 +02:00
parent 0039428c76
commit d2372b4377
30 changed files with 42 additions and 22 deletions
@@ -37,7 +37,7 @@ export default function Challenges({ journeys, victories }: ChallengesProps) {
<Image
alt="Checkmark Icon"
height={9}
src="/check.svg"
src="/_static/icons/check.svg"
width={12}
/>
</div>
@@ -14,7 +14,12 @@ export default function CopyButton({
return (
<Button onClick={handleCopy} type="button" variant="icon">
<Image alt="Copy Icon" height={20} src="/copy.svg" width={20} />
<Image
alt="Copy Icon"
height={20}
src="/_static/icons/copy.svg"
width={20}
/>
</Button>
)
}
@@ -16,7 +16,7 @@ export default function MembershipCardButton() {
type="button"
>
<span>Membership Card</span>
<Image alt="QR icon" height={20} src="/qr.svg" width={20} />
<Image alt="QR icon" height={20} src="/_static/icons/qr.svg" width={20} />
</Button>
)
}
@@ -12,7 +12,7 @@ export default function Friend({ user }: FriendProps) {
alt="Good Friend"
className={styles.image}
height={70}
src="/good-friend.svg"
src="/_static/icons/good-friend.svg"
width={228}
/>
<h3 className={styles.name}>{user.name}</h3>
@@ -15,7 +15,7 @@ export default function QualifyingPoints({ user }: QualifyingPointsProps) {
<Image
alt="Arrow Up Icon"
height={24}
src="/arrow_upward.svg"
src="/_static/icons/arrow_upward.svg"
width={24}
/>
<p className={styles.point}>{user.qualifyingPoints}</p>
@@ -25,7 +25,7 @@ export default function QualifyingPoints({ user }: QualifyingPointsProps) {
<Image
alt="Arrow Up Icon"
height={24}
src="/arrow_upward.svg"
src="/_static/icons/arrow_upward.svg"
width={24}
/>
<p className={styles.point}>{user.nights}</p>
@@ -30,7 +30,7 @@ export default function Shortcuts({
<Image
alt="Chevron Icon"
height={20}
src="/chevron.svg"
src="/_static/icons/chevron.svg"
width={20}
/>
</Link>
@@ -31,7 +31,7 @@ export default function Stay({
<Image
alt="Placeholder image flower"
height={73}
src="/flower-image.svg"
src="/_static/icons/flower-image.svg"
width={73}
/>
</div>
@@ -44,7 +44,7 @@ export default function Stay({
<Image
alt="Calendar Icon"
height={20}
src="/calendar_month.svg"
src="/_static/icons/calendar_month.svg"
width={20}
/>
<p>
@@ -54,7 +54,12 @@ export default function Stay({
</p>
</div>
<div className={styles.guests}>
<Image alt="Guests Icon" height={20} src="/person.svg" width={20} />
<Image
alt="Guests Icon"
height={20}
src="/_static/icons/person.svg"
width={20}
/>
<span>
{guests} guest{guests > 1 ? "s" : ""}
</span>
@@ -4,7 +4,12 @@ import styles from "./language.module.css"
export default function LanguageSwitcher() {
return (
<div className={styles.switcher}>
<Image alt="Swedish flag" height={21} src="/sweden.svg" width={21} />
<Image
alt="Swedish flag"
height={21}
src="/_static/icons/sweden.svg"
width={21}
/>
<span>SV / SEK</span>
</div>
)