-
Notifications
You must be signed in to change notification settings - Fork 887
feat(site): refactor workspace header to be more slim #11327
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
…nt-new-ws-header
…nt-new-ws-header
…nt-new-ws-header
|
||
if (parameters.queries) { | ||
parameters.queries.forEach((query) => { | ||
queryClient.setQueryData(query.key, query.data); |
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 are we doing here?
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.
We are setting the default values, passed via story parameters, for the react-query queries so the stories don't need to fetch the data. It is used to make the story independent of a BE or API.
}, | ||
) as typeof IconButton; | ||
|
||
export const TopbarButton = forwardRef<HTMLButtonElement, ButtonProps>( |
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.
:) nice
Current:
After: