Skip to content

Commit

Permalink
Merge pull request #481 from hifrontendcafe/fix/schemas-social-media
Browse files Browse the repository at this point in the history
fix: add missing social media fields
  • Loading branch information
TonyMckes authored Oct 19, 2023
2 parents 2f391cb + ab20777 commit 6f72006
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
27 changes: 27 additions & 0 deletions src/schemas/mentor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,33 @@ const mentor = defineType({
'The id of the mentor page on the notion database https://www.notion.so/hifrontendcafe/Datos-de-mentors-38f10db7e5084b339fd2fbde123d420e',
type: 'string',
},
{
title: 'Calendly',
name: 'calendly',
type: 'url',
validation: (Rule) => Rule.required(),
},
/* Social Media */
{
title: 'Web / Portfolio',
name: 'web',
type: 'url',
},
{
title: 'LinkedIn',
name: 'linkedin',
type: 'url',
},
{
title: 'Github',
name: 'github',
type: 'url',
},
{
title: 'Twitter',
name: 'twitter',
type: 'url',
},
],
preview: {
select: {
Expand Down
28 changes: 27 additions & 1 deletion src/schemas/person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,33 @@ const person = defineType({
list: timezones.map((tz) => ({ title: tz.text, value: tz.text })),
},
},

/* Social Media */
{
title: 'Web / Portfolio',
name: 'portfolio',
type: 'url',
},
{
title: 'LinkedIn',
name: 'linkedin',
type: 'url',
},
{
title: 'GitHub',
name: 'github',
type: 'url',
},
{
title: 'Twitter',
name: 'twitter',
type: 'url',
},
{
title: 'Instagram',
name: 'instagram',
type: 'url',
},
/* Certification */
{
title: 'Certificaciones',
name: 'certifications',
Expand Down

1 comment on commit 6f72006

@vercel
Copy link

@vercel vercel bot commented on 6f72006 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.