-
Notifications
You must be signed in to change notification settings - Fork 119
Fix theme flash on paste website #4025
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 4d82d58. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4d82d58:
|
Size Change: 0 B Total Size: 1.09 MB ℹ️ View Unchanged
|
Test summaryRun details
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud |
@@ -13,7 +13,7 @@ const ValidThemes = { | |||
type ValidThemeName = ValueOf<typeof ValidThemes>; | |||
|
|||
const isValidTheme = (themeName: ValidThemeName): boolean => { | |||
return themeName === ValidThemes.DEFAULT || themeName === ValidThemes.DARK; | |||
return Object.values(ValidThemes).includes(themeName); |
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.
praise: I like the scalable refactor 👏
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.
thanks!
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.
Looks great and works perfectly! I left one comment about unnecessary changeset but once that's removed you're good ✅
Test summaryRun details
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud |
This reverts commit fb4cbc5.
* Revert "Fix theme flash on paste website (#4025)" This reverts commit fb4cbc5. * fix(docs): build failure for changing to ssr * fix(docs): build failure for changing to ssr * fix(ci): resolve broken tests after delayed rendering * fix(ci): resolve broken tests after delayed rendering --------- Co-authored-by: Shoaib Ahmed <ashoaib540918@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
No description provided.