-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/SOF-7287 feature: add JL drawer to MD #202
Conversation
✅ Deploy Preview for mat3ra-materials-designer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
componentDidMount() { | ||
this.messageHandler.addHandlers("set-data", [this.handleSetMaterials]); | ||
this.messageHandler.addHandlers("get-data", [this.returnSelectedMaterials]); |
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.
Seems like code duplicate Let's reuse this through a parent
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.
Added base and inheritance
}); | ||
} | ||
} | ||
exports.SAlertWidget = SAlertWidget; |
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.
Wtf are all these extra files???
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.
They came from commiting dist
<div style={{ display: show ? "block" : "none" }}> | ||
<ResizableDrawer open={show} onClose={onHide} containerRef={containerRef}> | ||
<JupyterLiteSession | ||
originURL="https://jupyterlite.mat3ra.com" |
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.
Remove originURL
defaultNotebook should be set in Base
messageHandler should be created inside Base
@@ -162,7 +83,7 @@ class JupyterLiteTransformation extends React.Component< | |||
}} | |||
> | |||
<JupyterLiteSession | |||
defaultNotebookPath={DEFAULT_NOTEBOOK_PATH} | |||
defaultNotebookPath={this.DEFAULT_NOTEBOOK_PATH} |
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.
Should be set in Base
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.
Finally moved!
…signer into feature/SOF-7287
No description provided.