-
Notifications
You must be signed in to change notification settings - Fork 40
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
SWC-6668: implement react-component for editing the definingSql #5295
Conversation
…table instead of GWT
@@ -405,6 +407,7 @@ public void before() { | |||
PromptForValuesModalView.Configuration.Builder.class, | |||
new SelfReturningAnswer() | |||
); | |||
// when(mockMaterializedView.getId()).thenReturn(entityId); |
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.
// when(mockMaterializedView.getId()).thenReturn(entityId); |
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") | ||
public class SqlDefinedTableEditorModalProps extends ReactComponentProps { | ||
|
||
// going to match the props sent from src |
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.
// going to match the props sent from src |
@FunctionalInterface | ||
@JsFunction | ||
public interface OnUpdate { | ||
void OnUpdate(); |
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.
camelCase for consistency. You could also just define one Callback
interface for both onUpdate and onCancel, but that's up to you
void OnUpdate(); | |
void onUpdate(); |
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 good! We need to release a new version of SRC and pull it in before we merge this.
…table instead of GWT