mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-02 15:44:25 +02:00
fix: social button URL casing issue
This commit is contained in:
parent
e0db94b2c3
commit
d0b3c5ca6b
@ -4,7 +4,11 @@
|
|||||||
export let data: Social[];
|
export let data: Social[];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href={data.find(jsonSocial => jsonSocial.name === social)?.url} rel="noreferrer" target="_blank">
|
<a
|
||||||
|
href={data.find((jsonSocial) => jsonSocial.name.toLowerCase() === social.toLowerCase())?.url}
|
||||||
|
rel="noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
<img src="socials/{social}.svg" alt={social} />
|
<img src="socials/{social}.svg" alt={social} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user