Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/page/Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ function getRange() {
return {
"Past 10 Minutes": [
getCurrentTime().subtract(10, "minutes"),
getCurrentTime(),
getCurrentTime().add(1, "minutes"),
],
"Past 1 Hour": [getCurrentTime().subtract(60, "minutes"), getCurrentTime()],
"Past 5 Hours": [getCurrentTime().subtract(5, "hours"), getCurrentTime()],
"Past 24 Hours": [getCurrentTime().subtract(24, "hours"), getCurrentTime()],
"Past 3 Days": [getCurrentTime().subtract(3, "days"), getCurrentTime()],
"Past 7 Days": [getCurrentTime().subtract(7, "days"), getCurrentTime()],
"Past 2 Months": [getCurrentTime().subtract(2, "months"), getCurrentTime()],
"Past 1 Hour": [getCurrentTime().subtract(60, "minutes"), getCurrentTime().add(1, "minutes")],
"Past 5 Hours": [getCurrentTime().subtract(5, "hours"), getCurrentTime().add(1, "minutes")],
"Past 24 Hours": [getCurrentTime().subtract(24, "hours"), getCurrentTime().add(1, "minutes")],
"Past 3 Days": [getCurrentTime().subtract(3, "days"), getCurrentTime().add(1, "minutes")],
"Past 7 Days": [getCurrentTime().subtract(7, "days"), getCurrentTime().add(1, "minutes")],
"Past 2 Months": [getCurrentTime().subtract(2, "months"), getCurrentTime().add(1, "minutes")],
};
}

Expand Down Expand Up @@ -288,7 +288,7 @@ const Dashboard = () => {
</div>

{!logStream.isLoading &&
(logStream.isError || !logStream?.data?.data.length) ? (
(logStream.isError || !logStream?.data?.data.length) ? (
<div
style={{ transform: "translateX(-50%) translateY(-50%)" }}
className="absolute font-semibold text-gray-500 left-1/2 top-80"
Expand All @@ -310,8 +310,8 @@ const Dashboard = () => {
)}

{!logStreamSchema.isLoading &&
!logStreamSchema.isFetching &&
(logStreamSchema.isError || !logStreamSchema?.data?.data) ? (
!logStreamSchema.isFetching &&
(logStreamSchema.isError || !logStreamSchema?.data?.data) ? (
<div
style={{ transform: "translateX(-50%) translateY(-50%)" }}
className="absolute font-semibold text-gray-500 left-1/2 top-80"
Expand Down