add a dashboard table state

This commit is contained in:
Alex Holliday committed 2026-09-25 11:06:48 -07:00
1 parent 32a5ca8799
commit 7ab80ac3f4
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -9,6 +9,7 @@ type ThemeMode = "light" | "dark";
type ChartType = "histogram" | "line";
type TableName =
| "dashboard"
| "monitors"
| "team"
| "maintenance"
@@ -26,6 +27,7 @@ interface SidebarState {
}
interface UIState {
dashboard: TableState;
monitors: TableState;
pagespeed: TableState;
team: TableState;
@@ -51,6 +53,9 @@ const initialMode: ThemeMode = window?.matchMedia?.("(prefers-color-scheme: dark
: "light";
const initialState: UIState = {
dashboard: {
rowsPerPage: 10,
},
monitors: {
rowsPerPage: 10,
},
+1 -1
View File
@@ -34,7 +34,7 @@ const Dashboard = () => {
types: [...MonitorTypes],
checksLimit: 1,
refreshInterval: 30000,
rowsPerPageTable: "monitors",
rowsPerPageTable: "dashboard",
rowsPerPageDefault: 100,
});