From f4b060dd9dd5623c33d78eb9d7158add8b26c9dc Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Tue, 6 Aug 2024 00:15:53 -0400 Subject: [PATCH] Renames SocialNetworks to Socials --- .../{SocialNetworks.vue => Socials.vue} | 32 +++++------ src/views/Profile/PageInformations.vue | 36 ++++++------ src/views/creators/CreatorBanner.vue | 57 +++++++++---------- 3 files changed, 62 insertions(+), 63 deletions(-) rename src/views/Profile/Dialogs/PageInformations/{SocialNetworks.vue => Socials.vue} (69%) diff --git a/src/views/Profile/Dialogs/PageInformations/SocialNetworks.vue b/src/views/Profile/Dialogs/PageInformations/Socials.vue similarity index 69% rename from src/views/Profile/Dialogs/PageInformations/SocialNetworks.vue rename to src/views/Profile/Dialogs/PageInformations/Socials.vue index 1a466b9..37cc76d 100644 --- a/src/views/Profile/Dialogs/PageInformations/SocialNetworks.vue +++ b/src/views/Profile/Dialogs/PageInformations/Socials.vue @@ -10,14 +10,14 @@ const props = defineProps({ const emits = defineEmits(['closeRequested']) -const facebookUrl = ref(props.creator.socialNetworks.facebookUrl) -const instagramUrl = ref(props.creator.socialNetworks.instagramUrl) -const linkedInUrl = ref(props.creator.socialNetworks.linkedInUrl) -const redditUrl = ref(props.creator.socialNetworks.redditUrl) -const tikTokUrl = ref(props.creator.socialNetworks.tikTokUrl) -const websiteUrl = ref(props.creator.socialNetworks.websiteUrl) -const xUrl = ref(props.creator.socialNetworks.xUrl) -const youtubeUrl = ref(props.creator.socialNetworks.youtubeUrl) +const facebookUrl = ref(props.creator.socials.facebookUrl) +const instagramUrl = ref(props.creator.socials.instagramUrl) +const linkedInUrl = ref(props.creator.socials.linkedInUrl) +const redditUrl = ref(props.creator.socials.redditUrl) +const tikTokUrl = ref(props.creator.socials.tikTokUrl) +const websiteUrl = ref(props.creator.socials.websiteUrl) +const xUrl = ref(props.creator.socials.xUrl) +const youtubeUrl = ref(props.creator.socials.youtubeUrl) const client = useClient() const save = async () => { @@ -35,14 +35,14 @@ const save = async () => { "youtubeUrl": youtubeUrl.value || null, }) - props.creator.socialNetworks.facebookUrl = facebookUrl - props.creator.socialNetworks.instagramUrl = instagramUrl - props.creator.socialNetworks.linkedInUrl = linkedInUrl - props.creator.socialNetworks.redditUrl = redditUrl - props.creator.socialNetworks.tikTokUrl = tikTokUrl - props.creator.socialNetworks.websiteUrl = websiteUrl - props.creator.socialNetworks.xUrl = xUrl - props.creator.socialNetworks.youtubeUrl = youtubeUrl + props.creator.socials.facebookUrl = facebookUrl + props.creator.socials.instagramUrl = instagramUrl + props.creator.socials.linkedInUrl = linkedInUrl + props.creator.socials.redditUrl = redditUrl + props.creator.socials.tikTokUrl = tikTokUrl + props.creator.socials.websiteUrl = websiteUrl + props.creator.socials.xUrl = xUrl + props.creator.socials.youtubeUrl = youtubeUrl emits('closeRequested') } catch (error) { diff --git a/src/views/Profile/PageInformations.vue b/src/views/Profile/PageInformations.vue index cd93a8c..a66364a 100644 --- a/src/views/Profile/PageInformations.vue +++ b/src/views/Profile/PageInformations.vue @@ -1,6 +1,6 @@  \ No newline at end of file