Skip to content
Snippets Groups Projects
Commit 68668d76 authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

setup message should not provide its own styling (#5534)

parent 84b670f3
No related branches found
No related tags found
No related merge requests found
/* eslint "react/prop-types": "warn" */
import React, { Component } from "react";
import PropTypes from "prop-types";
import _ from "underscore";
import { assoc, assocIn } from "icepick";
......@@ -229,7 +228,7 @@ export default class PulseEditChannels extends Component {
<ul className="bg-grey-0 px3">{channels}</ul>
: channels.length > 0 && !channelSpec.configured ?
<div className="p4 text-centered">
<h3>{channelSpec.name} needs to be set up by an administrator.</h3>
<h3 className="mb2">{channelSpec.name} needs to be set up by an administrator.</h3>
<SetupMessage user={user} channels={[channelSpec.name]} />
</div>
: null
......
......@@ -20,12 +20,10 @@ export default class SetupMessage extends Component {
let content;
if (user.is_superuser) {
content = (
<div className="flex flex-column">
<div className="ml-auto">
{channels.map(c =>
<Link to={"/admin/settings/"+c.toLowerCase()} key={c.toLowerCase()} className="Button Button--primary mr1" target={window.OSX ? null : "_blank"}>Configure {c}</Link>
)}
</div>
<div>
{channels.map(c =>
<Link to={"/admin/settings/"+c.toLowerCase()} key={c.toLowerCase()} className="Button Button--primary mr1" target={window.OSX ? null : "_blank"}>Configure {c}</Link>
)}
</div>
);
......@@ -38,10 +36,6 @@ export default class SetupMessage extends Component {
</div>
);
}
return (
<div className="mx4 mb4">
{content}
</div>
);
return content;
}
}
......@@ -17,7 +17,9 @@ export default class SetupModal extends Component {
onClose={this.props.onClose}
title={`To send pulses, ${ this.props.user.is_superuser ? "you'll need" : "an admin needs"} to set up email or Slack integration.`}
>
<SetupMessage user={this.props.user} />
<div className="ml-auto mb4 mr4">
<SetupMessage user={this.props.user} />
</div>
</ModalContent>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment