+ {props.message} Please work with your agency to request Data Broker access through CAIA.
+
+
+ );
+};
LoginCaiaErrorMessage.propTypes = propTypes;
+export default LoginCaiaErrorMessage;
diff --git a/src/js/components/login/LoginCaiaLoading.jsx b/src/js/components/login/LoginCaiaLoading.jsx
index c81bfb48b..065e6acd6 100644
--- a/src/js/components/login/LoginCaiaLoading.jsx
+++ b/src/js/components/login/LoginCaiaLoading.jsx
@@ -3,7 +3,6 @@
* Created by Kevin Li 10/14/16
*/
-import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
@@ -14,46 +13,40 @@ const propTypes = {
errorMessage: PropTypes.string
};
-const defaultProps = {
- errorMessage: ''
-};
-
-export default class LoginCaiaLoading extends React.Component {
- render() {
- let errorMessageComponent = null;
- let hideLoading = '';
- let hideError = ' hide';
+const LoginCaiaLoading = ({errorMessage = ''}) => {
+ let errorMessageComponent = null;
+ let hideLoading = '';
+ let hideError = ' hide';
- if (this.props.errorMessage) {
- errorMessageComponent = ;
- hideLoading = ' hide';
- hideError = '';
- }
+ if (errorMessage) {
+ errorMessageComponent = ;
+ hideLoading = ' hide';
+ hideError = '';
+ }
- return (
-
-
-
-
-
-
-
- Signing into Data Broker...
-
+ return (
+
+
+
+
+
+
+
+ Signing into Data Broker...
-
-
- {errorMessageComponent}
-
- Back to login page
-
+
+
+
+ {errorMessageComponent}
+
+ Back to login page
- );
- }
-}
+
+ );
+};
LoginCaiaLoading.propTypes = propTypes;
-LoginCaiaLoading.defaultProps = defaultProps;
+export default LoginCaiaLoading;
diff --git a/src/js/components/login/LoginIntro.jsx b/src/js/components/login/LoginIntro.jsx
index 858de6843..307f47a3f 100644
--- a/src/js/components/login/LoginIntro.jsx
+++ b/src/js/components/login/LoginIntro.jsx
@@ -3,18 +3,16 @@
* Created by Kyle Fox 12/4/15
*/
-import React from 'react';
+const LoginIntro = () => {
+ return (
+
+
Data Broker
+
+ Sign in to upload your agency financial data and validate it against the Governmentwide Spending
+ Data Model (GSDM), formerly known as the DATA Act Information Model Schema (DAIMS).
+
- Sign in to upload your agency financial data and validate it against the Governmentwide Spending
- Data Model (GSDM), formerly known as the DATA Act Information Model Schema (DAIMS).
-
-
- );
- }
-}
+export default LoginIntro;
diff --git a/src/js/components/login/LoginPage.jsx b/src/js/components/login/LoginPage.jsx
index 6cdc9e667..b68458385 100644
--- a/src/js/components/login/LoginPage.jsx
+++ b/src/js/components/login/LoginPage.jsx
@@ -3,29 +3,28 @@
* Created by Kyle Fox 12/4/15
*/
-import React from 'react';
import { kGlobalConstants } from '../../GlobalConstants';
import LoginBanner from './LoginBanner';
import LoginWarningTxt from './LoginWarningTxt';
import TestEnvironmentBanner from '../SharedComponents/banners/TestEnvironmentBanner';
-export default class LoginPage extends React.Component {
- render() {
- let testBanner = null;
- if (!kGlobalConstants.PROD) {
- testBanner = ;
- }
+const LoginPage = (props) => {
+ let testBanner = null;
+ if (!kGlobalConstants.PROD) {
+ testBanner = ;
+ }
- return (
-