diff --git a/public/locales/en.json b/public/locales/en.json
index 2d4d133..33e594d 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -86,6 +86,8 @@
"pageNotFound": {
"resultTitle": "Page not found",
+ "nyiTitle": "Not yet implemented",
+ "nyiSubTitle": "This feature will be coming soon!",
"buttonGoBack": "Go back"
},
diff --git a/src/global/AppRouter.tsx b/src/global/AppRouter.tsx
index 407fa23..31c6481 100644
--- a/src/global/AppRouter.tsx
+++ b/src/global/AppRouter.tsx
@@ -87,7 +87,9 @@
{ path: "/whatsnew", name: "whatsNew", component: },
{ path: "/credits", name: "credits", component: },
- // TODO: remove this
+ // NYI and dev
+ { path: "/mining", name: "mining", component: },
+ { path: "/network/statistics", name: "statistics", component: },
{ path: "/dev", name: "dev", component: }
];
diff --git a/src/global/ws/WebsocketConnection.ts b/src/global/ws/WebsocketConnection.ts
index 14492c4..9a1c6e9 100644
--- a/src/global/ws/WebsocketConnection.ts
+++ b/src/global/ws/WebsocketConnection.ts
@@ -31,7 +31,6 @@
private forceClosing = false;
- // TODO: automatically clean this up?
private refreshThrottles: Record void> = {};
private subscriptions: Record = {};
diff --git a/src/krist/api/lookup.ts b/src/krist/api/lookup.ts
index 3d834ec..3e920f4 100644
--- a/src/krist/api/lookup.ts
+++ b/src/krist/api/lookup.ts
@@ -33,7 +33,6 @@
return data.addresses;
} catch (err) {
- // TODO: proper error handling function for API requests
console.error(err);
}
diff --git a/src/pages/NotFoundPage.tsx b/src/pages/NotFoundPage.tsx
index f68adad..9f41ecb 100644
--- a/src/pages/NotFoundPage.tsx
+++ b/src/pages/NotFoundPage.tsx
@@ -5,21 +5,26 @@
import { FrownOutlined } from "@ant-design/icons";
import { useHistory } from "react-router-dom";
-import { useTranslation } from "react-i18next";
+import { useTFns } from "@utils/i18n";
import { SmallResult } from "@comp/results/SmallResult";
-export function NotFoundPage(): JSX.Element {
- const { t } = useTranslation();
+interface Props {
+ nyi?: boolean;
+}
+
+export function NotFoundPage({ nyi }: Props): JSX.Element {
+ const { tStr } = useTFns("pageNotFound.");
const history = useHistory();
return }
status="error"
- title={t("pageNotFound.resultTitle")}
+ title={nyi ? tStr("nyiTitle") : tStr("resultTitle")}
+ subTitle={nyi ? tStr("nyiSubTitle") : undefined}
extra={(
)}
fullPage