New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(er-next): miscellaneous stuff #1472
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -118,7 +119,8 @@ export const WorkshopSchema = z.object({ | |||
_updatedAt: z.string(), | |||
_createdAt: z.string(), | |||
description: z.string().nullable(), | |||
state: z.string(), // TODO: make this a union/literal of the 3 states |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed this TODO (but used only the 2 states - "draft" and "published". What's supposed to be the third one?)
apps/epic-react/src/pages/learn.tsx
Outdated
} | ||
})} | ||
</ul> | ||
if (resource._type === 'section' && resource?.resources) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't appease the TS here, can you please take a look @jbranchaud ?
apps/epic-react/src/pages/learn.tsx
Outdated
key={resource._id} | ||
title={resource.title} | ||
workshopSlug={computedResource.slug.current} | ||
resourceSlug={resource.resources[0].slug} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't appease the TS here, can you please take a look @jbranchaud ?
|
||
const paths = tutorials.flatMap((tutorial: any) => { | ||
const paths = [...tutorials, ...bonuses].flatMap((tutorial: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decided to merge workshops
(it was "tutorials" here before, I didn't change) and bonuses
here
This PR adds:
bonus
&interview
)Learn page
Livestreams page