Skip to content
Snippets Groups Projects
Commit 3d021e67 authored by Ben Wheeler's avatar Ben Wheeler
Browse files

cleaned up a few mistakes per feedback

parent 82578d3d
Branches
Tags
No related merge requests found
......@@ -27,6 +27,7 @@ const AlertComponent = ({
className={classNames(styles.alert, styles[level])}
>
<div className={styles.alertMessage}>
{/* TODO: implement Rtl handling */}
{iconURL ? (
<img
className={styles.alertIcon}
......@@ -34,6 +35,7 @@ const AlertComponent = ({
/>
) : null}
{message}
&nbsp;
{content}
</div>
{showReconnect ? (
......
......@@ -45,9 +45,7 @@ class Alert extends React.Component {
}
}
const mapStateToProps = state => ({
state: state
});
const mapStateToProps = () => ({});
const mapDispatchToProps = dispatch => ({
onOpenConnectionModal: id => {
......
......@@ -54,7 +54,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
// TODO: distinguish between creating new, remixing, and saving as a copy
if (this.props.isCreatingNew && !prevProps.isCreatingNew) {
this.props.onShowCreatingAlert();
this.storeProject()
this.storeProject(null)
.then(response => {
this.props.onShowCreateSuccessAlert();
this.props.onCreatedProject(response.id.toString(), this.props.loadingState);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment