Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Update formatting to pass format-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Hillary Jeffrey committed Feb 4, 2020
1 parent 3618040 commit 2c12b76
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
6 changes: 5 additions & 1 deletion static_src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ const Header = () => {
</nav>
</div>
<div className="form-notification">
<h2 className="bg-lightestgray"><a href={header.deprecation_notice.url}>{header.deprecation_notice.text}</a></h2>
<h2 className="bg-lightestgray">
<a href={header.deprecation_notice.url}>
{header.deprecation_notice.text}
</a>
</h2>
</div>
</div>
</header>
Expand Down
21 changes: 5 additions & 16 deletions static_src/components/users_invite.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

import PropTypes from "prop-types";
import React from "react";
import Action from "./action.jsx";
import FormStore from "../stores/form_store";
import { Form, FormText } from "./form";
import PanelDocumentation from "./panel_documentation.jsx";
import userActions from "../actions/user_actions";
import { validateEmail } from "../util/validators";
Expand All @@ -21,7 +19,6 @@ const propTypes = {
error: PropTypes.object
};
const defaultProps = {
inviteDisabled: false,
currentUserAccess: false,
error: {}
};
Expand Down Expand Up @@ -77,12 +74,10 @@ export default class UsersInvite extends React.Component {
return (
<PanelDocumentation description>
<p>
NOTE: Use {" "}
<a href="https://dashboard-beta.fr.cloud.gov/">
the new dashboard
</a> {" "}
to add a new or existing user to this {entity}, as we deprecate {" "}
this dashboard. See our {" "}
NOTE: Use{" "}
<a href="https://dashboard-beta.fr.cloud.gov/">the new dashboard</a>{" "}
to add a new or existing user to this {entity}, as we deprecate this
dashboard. See our{" "}
<a href="https://cloud.gov/docs/orgs-spaces/roles/">
updated documentation on how to manage user access and roles here
</a>.
Expand All @@ -92,17 +87,11 @@ export default class UsersInvite extends React.Component {
}

render() {
const { inviteDisabled } = true;

if (!this.props.currentUserAccess) {
return null;
}

return (
<div className="test-users-invite">
{this.invitationMessage}
</div>
);
return <div className="test-users-invite">{this.invitationMessage}</div>;
}
}

Expand Down
1 change: 0 additions & 1 deletion static_src/components/users_selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import React from "react";
import Action from "./action.jsx";
import FormStore from "../stores/form_store";
import { Form, FormSelect } from "./form";
import PanelDocumentation from "./panel_documentation.jsx";
import userActions from "../actions/user_actions";
import { validateString } from "../util/validators";

Expand Down
4 changes: 2 additions & 2 deletions static_src/skins/cg/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const links = [
}
];

const deprecation_notice = {
const deprecationNotice = {
text: "Please use the new cloud.gov dashboard.",
url: "https://dashboard-beta.cloud.gov/"
};
Expand All @@ -105,7 +105,7 @@ const header = {
disclaimer,
logo,
links,
deprecation_notice
deprecationNotice
};

export default header;

0 comments on commit 2c12b76

Please sign in to comment.