From 09de3f6e3c97f19574f2ab64318f3177f38c8077 Mon Sep 17 00:00:00 2001 From: shairyar Date: Thu, 16 Mar 2023 18:42:37 +0500 Subject: [PATCH] Sort uptime monitors by alphabetical order (#58) Display uptime monitors in alphabetical order --- components/UptimeMonitor/UptimeMonitor.js | 2 +- .../__snapshots__/UptimeMonitor.test.js.snap | 1 + components/UptimeMonitors/UptimeMonitors.js | 3 ++ .../UptimeMonitors/UptimeMonitors.test.js | 16 +++++++++++ .../__snapshots__/UptimeMonitors.test.js.snap | 7 +++-- mocks/monitors/multiple.json | 28 +++++++++++++++++++ 6 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 mocks/monitors/multiple.json diff --git a/components/UptimeMonitor/UptimeMonitor.js b/components/UptimeMonitor/UptimeMonitor.js index c477ef9..b4efad5 100644 --- a/components/UptimeMonitor/UptimeMonitor.js +++ b/components/UptimeMonitor/UptimeMonitor.js @@ -47,7 +47,7 @@ const UptimeMonitor = ({ uptimeMonitor, threshold }) => { return ( <> -
+

- Always Down + homepage