logs tab
This commit is contained in:
1 parent
3b25b37c22
commit
a148f56b22
12 files changed
+291
-5
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import { BasePage, Tabs, Tab } from "@/Components/v2/design-elements";
|
||||
import { TabLogs } from "@/Pages/Logs/TabLogs";
|
||||
import { TabQueue } from "@/Pages/Logs/TabQueue";
|
||||
import { TabDiagnostics } from "@/Pages/Logs/TabDiagnostics";
|
||||
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const LogsPage = () => {
|
||||
const { t } = useTranslation();
|
||||
const [activeTab, setActiveTab] = useState<number>(0);
|
||||
return (
|
||||
<BasePage>
|
||||
<Tabs
|
||||
value={activeTab}
|
||||
onChange={(_, newValue: number) => setActiveTab(newValue)}
|
||||
>
|
||||
<Tab label={t("pages.logs.tabs.logs")} />
|
||||
<Tab label={t("pages.logs.tabs.queue")} />
|
||||
<Tab label={t("pages.logs.tabs.diagnostics")} />
|
||||
</Tabs>
|
||||
{activeTab === 0 && <TabLogs />}
|
||||
{activeTab === 1 && <TabQueue />}
|
||||
{activeTab === 2 && <TabDiagnostics />}
|
||||
</BasePage>
|
||||
);
|
||||
};
|
||||
|
||||
export default LogsPage;
|
||||
Reference in new issue
Block a user