refactor: rename StatsTab component

pull/15/head
c-cal 5 years ago
parent f2623665ed
commit bf36226b57
Signed by: watcha
GPG Key ID: 87DD78E7F7A1581D
  1. 4
      src/AdminHome.js
  2. 0
      src/DashboardTab.js

@ -5,7 +5,7 @@ import Tabs from "react-bootstrap/Tabs";
import DataToTable from "./DataToTable";
// import Monitoring from './Monitoring';
import StatsTab from "./StatsTab";
import DashboardTab from "./DashboardTab";
export default withTranslation()(({ t }) => {
const [key, setKey] = useState("dashboard");
@ -21,7 +21,7 @@ export default withTranslation()(({ t }) => {
return (
<Tabs id="tabs" activeKey={key} {...{ onSelect }}>
<Tab eventKey="dashboard" title={t("dashboardTab.title")}>
<StatsTab {...{ changeTab }} />
<DashboardTab {...{ changeTab }} />
</Tab>
<Tab eventKey="users" title={t("usersTab.title")}>
<DataToTable tableName="user" {...{ changeTab, userId }} />

Loading…
Cancel
Save