diff --git a/react-frontend/package.json b/react-frontend/package.json
index 52130be8..8842ae78 100644
--- a/react-frontend/package.json
+++ b/react-frontend/package.json
@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "react-scripts start",
- "build": "rm -rf build && react-scripts build",
+ "build": "rm -rf build && GENERATE_SOURCEMAP=false react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
diff --git a/react-frontend/src/components/ContentHeader.jsx b/react-frontend/src/components/ContentHeader.jsx
index 7add42dc..31f0e315 100644
--- a/react-frontend/src/components/ContentHeader.jsx
+++ b/react-frontend/src/components/ContentHeader.jsx
@@ -1,11 +1,26 @@
import React from "react";
-import { core } from "../utils/data";
const ContentHeader = () => {
return (
-
{core.name}
-
{core.description}
+
+ Razorpay Status Page
+
+
+ Razorpay status page publishes the most up-to-the-minute information on
+ product availability. Check back here any time to get current
+ status/information on individual products. If you are experiencing a
+ real-time, operational issue with one of our products that is not
+ described below, please reach out to{" "}
+
+ our support team
+ {" "}
+ and we will help you out.
+
);
};
diff --git a/react-frontend/src/components/GroupServiceFailures.jsx b/react-frontend/src/components/GroupServiceFailures.jsx
index debcd7ba..2f144ca6 100644
--- a/react-frontend/src/components/GroupServiceFailures.jsx
+++ b/react-frontend/src/components/GroupServiceFailures.jsx
@@ -103,7 +103,10 @@ const GroupServiceFailures = ({ group = null, service, collapse }) => {
const handleTooltip = (d) => {
let txt = "";
if (d.status === "up") {
- txt = `${d.timeframe} - No Downtime`;
+ txt = `
+
${d.timeframe}
+
No Downtime
+
`;
} else if (d.status === "down" && !isObjectEmpty(d.downtimes)) {
txt = `
${d.timeframe}
diff --git a/react-frontend/src/components/ServicesPage.jsx b/react-frontend/src/components/ServicesPage.jsx
index d8b519cb..b1155002 100644
--- a/react-frontend/src/components/ServicesPage.jsx
+++ b/react-frontend/src/components/ServicesPage.jsx
@@ -1,10 +1,6 @@
import React, { useState, useEffect } from "react";
// import { NavLink } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import {
- faCheckCircle,
- faExclamationCircle,
-} from "@fortawesome/free-solid-svg-icons";
import DateUtils from "../utils/DateUtils";
import Group from "./Group";
import ContentHeader from "./ContentHeader";
@@ -14,13 +10,13 @@ import ServiceLoader from "./ServiceLoader";
// import ServiceBlock from "./ServiceBlock";
// import ServicesList from "./ServicesList";
import API from "../config/API";
-import { STATUS_COLOR, STATUS_TEXT } from "../utils/constants";
+import { STATUS_COLOR, STATUS_ICON, STATUS_TEXT } from "../utils/constants";
import { findStatus } from "../utils/helper";
const ServicesPage = () => {
// const data = messages.filter((m) => inRange(m) && m.service === 0);
const [services, setServices] = useState([]);
- const [status, setStatus] = useState(true);
+ const [status, setStatus] = useState("uptime");
const [loading, setLoading] = useState(true);
const [poll, setPolling] = useState(1);
const today = DateUtils.format(new Date(), "d MMMM yyyy, hh:mm aaa");
@@ -57,14 +53,16 @@ const ServicesPage = () => {
Razorpay Payments
{STATUS_TEXT[status]}
- {today}
+
+
+ {today}
diff --git a/react-frontend/src/styles/scss/base.scss b/react-frontend/src/styles/scss/base.scss
index c3638a6b..3144d87f 100644
--- a/react-frontend/src/styles/scss/base.scss
+++ b/react-frontend/src/styles/scss/base.scss
@@ -191,6 +191,15 @@
line-height: 1rem;
padding: 0 4.65rem;
color: rgba($white, 0.8);
+
+ a {
+ text-decoration: underline;
+
+ &:hover,
+ &:focus {
+ color: rgba($white, 0.8);
+ }
+ }
}
}
diff --git a/react-frontend/src/utils/helper.js b/react-frontend/src/utils/helper.js
index a230a8db..78c57735 100644
--- a/react-frontend/src/utils/helper.js
+++ b/react-frontend/src/utils/helper.js
@@ -1,7 +1,5 @@
// import DateUtils from "./DateUtils";
-import DateUtils from "./DateUtils";
-
export function findStatus(data) {
if (!Array.isArray(data)) return null;
if (data.length === 0) return null;
@@ -11,7 +9,7 @@ export function findStatus(data) {
if (uptime) return "uptime";
if (downtime) return "downtime";
if (degraded) return "degraded";
- return "none";
+ return "";
}
// export function inRange(message) {