Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/containers/AdminCampaignStats/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { css, StyleSheet } from "aphrodite";
import PropTypes from "prop-types";
import React from "react";
import { Helmet } from "react-helmet";
import { withRouter } from "react-router-dom";
import { Link, withRouter } from "react-router-dom";
import { compose } from "recompose";

import CampaignNavigation from "../../components/CampaignNavigation";
Expand Down Expand Up @@ -476,9 +476,19 @@ class AdminCampaignStats extends React.Component {
<Snackbar
open={this.state.campaignJustCopied}
message={
this.state.copyCampaignError
? `Error: ${this.state.copyCampaignError}`
: `Campaign successfully copied to campaign ${this.state.copiedCampaignId}`
this.state.copyCampaignError ? (
`Error: ${this.state.copyCampaignError}`
) : (
<span>
Campaign successfully copied to{" "}
<Link
to={`/admin/${organizationId}/campaigns/${this.state.copiedCampaignId}/edit`}
style={{ color: theme.colors.white }}
>
campaign {this.state.copiedCampaignId}
</Link>
</span>
)
}
autoHideDuration={5000}
onClose={() => {
Expand Down
Loading