From ab20777354ecc155fd35b30de753f3d61eeb1770 Mon Sep 17 00:00:00 2001 From: Anthony Mackensen Date: Thu, 19 Oct 2023 08:23:29 -0400 Subject: [PATCH] fix: add missing social media fields --- src/schemas/mentor.ts | 27 +++++++++++++++++++++++++++ src/schemas/person.ts | 28 +++++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/src/schemas/mentor.ts b/src/schemas/mentor.ts index 74ee2c1a..cdd92fe0 100644 --- a/src/schemas/mentor.ts +++ b/src/schemas/mentor.ts @@ -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: { diff --git a/src/schemas/person.ts b/src/schemas/person.ts index c43bcd5c..b1fe93d0 100644 --- a/src/schemas/person.ts +++ b/src/schemas/person.ts @@ -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',