Skip to content

Commit

Permalink
removed jsx syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
JillianK committed Jun 26, 2020
1 parent 196fe5e commit b901f83
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions apps/src/StudioApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -3085,20 +3085,21 @@ StudioApp.prototype.displayWorkspaceAlert = function(
var parent = $(bottom && this.editCode ? '#codeTextbox' : '#codeWorkspace');
var container = $('<div/>');
parent.append(container);
ReactDOM.render(
<WorkspaceAlert
type={type}
onClose={() => {
console.log('show me the alert');

This comment has been minimized.

Copy link
@jmkulwik

jmkulwik Jun 27, 2020

Contributor

Still needed?

This comment has been minimized.

Copy link
@JillianK

JillianK Jun 27, 2020

Author Contributor

nope hahaha

const workspaceAlert = React.createElement(
WorkspaceAlert,
{
type: type,
onClose: () => {
ReactDOM.unmountComponentAtNode(container[0]);
}}
isBlockly={this.usingBlockly_}
isCraft={this.config.app === 'craft'}
displayBottom={bottom}
>
{alertContents}
</WorkspaceAlert>,
container[0]
},
isBlockly: this.usingBlockly_,
isCraft: this.config.app === 'craft',
displayBottom: bottom
},
alertContents
);
ReactDOM.render(workspaceAlert, container[0]);

return container[0];
};
Expand Down

0 comments on commit b901f83

Please sign in to comment.