Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web][auth] Improve empty state

Manav Rathidefbdf528c55
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index 2fd032d5c2..920a3970c5 100644
--- a/web/apps/auth/src/pages/auth.tsx
+++ b/web/apps/auth/src/pages/auth.tsx
@@ -13,7 +13,14 @@ import { AUTH_PAGES as PAGES } from "@ente/shared/constants/pages";
import { ApiError, CustomError } from "@ente/shared/error";
import LogoutOutlined from "@mui/icons-material/LogoutOutlined";
import MoreHoriz from "@mui/icons-material/MoreHoriz";
-import { Button, ButtonBase, Snackbar, TextField, styled } from "@mui/material";
+import {
+ Button,
+ ButtonBase,
+ Snackbar,
+ TextField,
+ Typography,
+ styled,
+} from "@mui/material";
import { t } from "i18next";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
@@ -121,7 +128,9 @@ const Page: React.FC = () => {
{searchTerm.length > 0 ? (
<p>{t("no_results")}</p>
) : (
- <></>
+ <Typography color="text.muted">
+ {t("no_codes_added_yet")}
+ </Typography>
)}
</div>
) : (
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 559001a8a3..e69cf1e24f 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -555,6 +555,7 @@
"at": "at",
"AUTH_NEXT": "next",
"AUTH_DOWNLOAD_MOBILE_APP": "Download our mobile app to manage your secrets",
+ "no_codes_added_yet": "No codes added yet",
"HIDE": "Hide",
"UNHIDE": "Unhide",
"sort_by": "Sort by",