feat: AcfPhone
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { AcfSocialFragment } from "#graphql/types";
|
||||
|
||||
defineProps<{ social?: AcfSocialFragment }>();
|
||||
defineProps<{ social: AcfSocialFragment }>();
|
||||
|
||||
const socialIconNames = {
|
||||
"facebook.com": "i-cib-facebook-f",
|
||||
@@ -24,7 +24,7 @@ function getSocialIcon(url: string): string {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ul v-if="social?.profiles.length">
|
||||
<ul v-if="social.profiles.length">
|
||||
<li v-for="({ url }, key) in social.profiles" :key="key">
|
||||
<a :href="url" target="_blank" rel="noopener noreferrer">
|
||||
<UIcon :name="getSocialIcon(url)" />
|
||||
|
||||
Reference in New Issue
Block a user