Skip to content

Commit

Permalink
Chore:updated link sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
sandygudie committed Aug 21, 2024
1 parent 57e5247 commit e006bab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ defineProps<{
@click="toggleActive('links')"
>
<LinkIcon class="md:hidden" />
<span class="hidden md:inline">Links</span>
<span class="hidden md:inline font-semibold">Links</span>
</button>
<button
:class="[isActive === 'profile' ? 'active' : 'hover:text-purple-300']"
class="px-4 flex gap-1 py-2 text-gray rounded-lg text-sm"
@click="toggleActive('profile')"
>
<ProfileIcon class="md:hidden" />
<span class="hidden md:inline"> Profile Details</span>
<span class="hidden md:inline font-semibold"> Profile Details</span>
</button>
</div>

Expand Down
3 changes: 2 additions & 1 deletion client/src/views/PublicView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ onMounted(async () => {
isLoading.value = true
try {
const profileResponse = await getPublicDetails(id)
if (profileResponse.success) {
profileLinks.value.firstname = profileResponse.data[0].name.split(' ')[0]
profileLinks.value.lastname = profileResponse.data[0].name.split(' ')[1]
profileLinks.value.email = profileResponse.data[0].email
profileLinks.value.devlinks = JSON.parse(profileResponse.data[0].links) || []
profileLinks.value.devlinks = profileResponse.data[0].links || []
profileLinks.value.profilepic = profileResponse.data[0].profilepic
}
} catch (err: any) {
Expand Down

0 comments on commit e006bab

Please sign in to comment.