-
Notifications
You must be signed in to change notification settings - Fork 887
feat(site): add an organization switcher to the user menu #13269
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
aslilac
commented
May 13, 2024
•
edited
Loading
edited

@@ -67,7 +67,7 @@ export const RequireAuth: FC = () => { | |||
}; | |||
|
|||
type RequireKeys<T, R extends keyof T> = Omit<T, R> & { | |||
[K in keyof Pick<T, R>]: NonNullable<T[K]>; | |||
[K in keyof Pick<T, R>]-?: NonNullable<T[K]>; |
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.
What -?
does?
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.
"make the mapped key non-optional". it's weird but NonNullable
is not enough on it's own. 🙃
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.
You need to run with |
and you'll need to manually hit the backend if you want to create a new org, and it'll probably break everything if you do. Trying to hack this out one piece at a time. 😅 |
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.
I'm going to be off tomorrow so I'm going to approve this since the code looks good and it is under experimental 👍