diff --git a/packages/aml-checklist/src/tests/badges/badge-branches.svg b/packages/aml-checklist/src/tests/badges/badge-branches.svg index 108a60c9f6..5c9bd22eb2 100644 --- a/packages/aml-checklist/src/tests/badges/badge-branches.svg +++ b/packages/aml-checklist/src/tests/badges/badge-branches.svg @@ -1 +1 @@ - Coverage:branchesCoverage:branches59.49%59.49% \ No newline at end of file + Coverage:branchesCoverage:branches59.41%59.41% \ No newline at end of file diff --git a/packages/aml-checklist/src/tests/badges/badge-lines.svg b/packages/aml-checklist/src/tests/badges/badge-lines.svg index b7312c68b1..fe2e92c2ee 100644 --- a/packages/aml-checklist/src/tests/badges/badge-lines.svg +++ b/packages/aml-checklist/src/tests/badges/badge-lines.svg @@ -1 +1 @@ - Coverage:linesCoverage:lines85.28%85.28% \ No newline at end of file + Coverage:linesCoverage:lines85.4%85.4% \ No newline at end of file diff --git a/packages/aml-checklist/src/tests/badges/badge-statements.svg b/packages/aml-checklist/src/tests/badges/badge-statements.svg index 1b75cae2cb..995063a0d4 100644 --- a/packages/aml-checklist/src/tests/badges/badge-statements.svg +++ b/packages/aml-checklist/src/tests/badges/badge-statements.svg @@ -1 +1 @@ - Coverage:statementsCoverage:statements85.05%85.05% \ No newline at end of file + Coverage:statementsCoverage:statements85.17%85.17% \ No newline at end of file diff --git a/packages/lifetime-legal/src/tests/badges/badge-branches.svg b/packages/lifetime-legal/src/tests/badges/badge-branches.svg index 3f5a771253..a3b5f00354 100644 --- a/packages/lifetime-legal/src/tests/badges/badge-branches.svg +++ b/packages/lifetime-legal/src/tests/badges/badge-branches.svg @@ -1 +1 @@ - Coverage:branchesCoverage:branches61.69%61.69% \ No newline at end of file + Coverage:branchesCoverage:branches61.57%61.57% \ No newline at end of file diff --git a/packages/lifetime-legal/src/tests/badges/badge-lines.svg b/packages/lifetime-legal/src/tests/badges/badge-lines.svg index a42129ad31..4e7fd441d5 100644 --- a/packages/lifetime-legal/src/tests/badges/badge-lines.svg +++ b/packages/lifetime-legal/src/tests/badges/badge-lines.svg @@ -1 +1 @@ - Coverage:linesCoverage:lines87.76%87.76% \ No newline at end of file + Coverage:linesCoverage:lines87.87%87.87% \ No newline at end of file diff --git a/packages/lifetime-legal/src/tests/badges/badge-statements.svg b/packages/lifetime-legal/src/tests/badges/badge-statements.svg index 3347777ad2..ae5a4c80cd 100644 --- a/packages/lifetime-legal/src/tests/badges/badge-statements.svg +++ b/packages/lifetime-legal/src/tests/badges/badge-statements.svg @@ -1 +1 @@ - Coverage:statementsCoverage:statements87.13%87.13% \ No newline at end of file + Coverage:statementsCoverage:statements87.24%87.24% \ No newline at end of file diff --git a/packages/marketplace/src/components/pages/login.tsx b/packages/marketplace/src/components/pages/login.tsx index 113a0b1a98..2ebbefa694 100644 --- a/packages/marketplace/src/components/pages/login.tsx +++ b/packages/marketplace/src/components/pages/login.tsx @@ -45,6 +45,8 @@ export const tabConfigs = ({ loginType, history }: LoginProps): TabConfig[] => [ ] export const Login: React.FunctionComponent = (props: LoginProps) => { + const reapitEnv = process.env.REAPIT_ENV || 'LOCAL' + const isReapitEnvProd = reapitEnv === 'PROD' const { hasSession, loginType, location, authChangeLoginType } = props const { wrapper, container, image, tabsContainer /* , register */ } = loginStyles @@ -69,7 +71,7 @@ export const Login: React.FunctionComponent = (props: LoginProps) =>

Welcome to Reapit {`${loginType === 'CLIENT' ? 'Marketplace' : 'Foundations'}`}

- {loginType !== 'ADMIN' && ( + {loginType !== 'ADMIN' && !isReapitEnvProd && (
diff --git a/packages/marketplace/src/core/__tests__/__snapshots__/router.tsx.snap b/packages/marketplace/src/core/__tests__/__snapshots__/router.tsx.snap index c10867bdd7..8d1813ad47 100644 --- a/packages/marketplace/src/core/__tests__/__snapshots__/router.tsx.snap +++ b/packages/marketplace/src/core/__tests__/__snapshots__/router.tsx.snap @@ -30,9 +30,9 @@ exports[`Router should match a snapshot 1`] = ` exact={true} path={ Array [ - "/client/login", "/developer/login", "/admin/login", + "/client/login", ] } render={[Function]} diff --git a/packages/marketplace/src/core/router.tsx b/packages/marketplace/src/core/router.tsx index 47680b7d17..a1a5bfde89 100644 --- a/packages/marketplace/src/core/router.tsx +++ b/packages/marketplace/src/core/router.tsx @@ -30,12 +30,14 @@ const AdminAppsPage = React.lazy(() => import('../components/pages/admin-apps')) const RegisterConfirm = React.lazy(() => import('../components/pages/register-confirm')) const AdminStats = React.lazy(() => import('../components/pages/admin-stats')) +const reapitEnv = process.env.REAPIT_ENV || 'LOCAL' +const isReapitEnvProd = reapitEnv === 'PROD' const Router = () => ( } /> diff --git a/packages/marketplace/src/tests/badges/badge-branches.svg b/packages/marketplace/src/tests/badges/badge-branches.svg index 92389eece2..dcb04ea023 100644 --- a/packages/marketplace/src/tests/badges/badge-branches.svg +++ b/packages/marketplace/src/tests/badges/badge-branches.svg @@ -1 +1 @@ - Coverage:branchesCoverage:branches70.47%70.47% \ No newline at end of file + Coverage:branchesCoverage:branches70.52%70.52% \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-lines.svg b/packages/marketplace/src/tests/badges/badge-lines.svg index 79d483fdb8..bafd909e37 100644 --- a/packages/marketplace/src/tests/badges/badge-lines.svg +++ b/packages/marketplace/src/tests/badges/badge-lines.svg @@ -1 +1 @@ - Coverage:linesCoverage:lines90.35%90.35% \ No newline at end of file + Coverage:linesCoverage:lines90.37%90.37% \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-statements.svg b/packages/marketplace/src/tests/badges/badge-statements.svg index 61b3d7e116..7e1340271b 100644 --- a/packages/marketplace/src/tests/badges/badge-statements.svg +++ b/packages/marketplace/src/tests/badges/badge-statements.svg @@ -1 +1 @@ - Coverage:statementsCoverage:statements89.52%89.52% \ No newline at end of file + Coverage:statementsCoverage:statements89.53%89.53% \ No newline at end of file