-
Notifications
You must be signed in to change notification settings - Fork 101
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: pass buttons' props separately to FrameButtonContainer #499
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
theme?.Button || ({} as TStylingProps) | ||
) | ||
), | ||
buttonsProps: buttonsProps, |
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.
nit pick - shorthand here 😄
@@ -259,40 +287,19 @@ export function BaseFrameUI<TStylingProps extends Record<string, unknown>>({ | |||
buttonsContainer: | |||
frameUiState.status === "loading" || | |||
!frameUiState.frame.buttons || | |||
frameUiState.frame.buttons.length === 0 | |||
frameUiState.frame.buttons.length === 0 || | |||
!buttonsProps |
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.
the conditions are pretty much the same here, could just do with a buttonProps && components....
?
Change Summary
Passes button props alongside the button elements to the
FrameButtonContainer
component in case the props need to be transformed or reordered at render time.Merge Checklist