Skip to content

armgit / ente

Public Imported from GitHub
0

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

T

Manav Rathiefb15e3866c8
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index c11da2a6f9..1049f3cc92 100644
--- a/web/apps/auth/src/pages/auth.tsx
+++ b/web/apps/auth/src/pages/auth.tsx
@@ -345,12 +345,12 @@ const UnparseableCode: React.FC<UnparseableCodeProps> = ({
<Typography variant="small">{code.issuer}</Typography>
<Typography
variant="small"
- sx={(theme) => ({
- color: theme.palette.critical.main,
+ sx={{
+ color: "critical.main",
flex: 1,
minHeight: "16px",
mb: 2,
- })}
+ }}
>
{errorMessage}
</Typography>
diff --git a/web/apps/auth/src/pages/share.tsx b/web/apps/auth/src/pages/share.tsx
index 50d34e196c..c87c475e68 100644
--- a/web/apps/auth/src/pages/share.tsx
+++ b/web/apps/auth/src/pages/share.tsx
@@ -1,6 +1,6 @@
import { EnteLogo } from "@/base/components/EnteLogo";
import { decryptMetadataJSON_New } from "@/base/crypto";
-import { Box, Stack, Typography } from "@mui/material";
+import { Box, Button, Stack, Typography } from "@mui/material";
import React, { useEffect, useMemo, useState } from "react";
interface SharedCode {
@@ -107,8 +107,14 @@ const Page: React.FC = () => {
>
<EnteLogo />
- <Box style={{ width: "100%", maxWidth: "300px" }}>
- {error && <p style={{ color: "red" }}>{error}</p>}
+ <Box sx={{ width: "min(100%, 300px)" }}>
+ {error && (
+ <Typography
+ sx={{ textAlign: "center", color: "critical.main" }}
+ >
+ {error}
+ </Typography>
+ )}
{timeStatus === -10 && !error && (
<Message>{"Decrypting..."}</Message>
)}
@@ -178,29 +184,19 @@ const Page: React.FC = () => {
)}
</Box>
- <a
+ <Button
+ color="accent"
+ sx={{
+ backgroundColor: "#8E2DE2",
+ borderRadius: "25px",
+ padding: "15px 30px",
+ marginBottom: "42px",
+ }}
href="https://ente.io/auth"
target="_blank"
- rel="noopener noreferrer"
>
- <button
- style={{
- backgroundColor: "#8E2DE2",
- color: "#FFFFFF",
- border: "none",
- borderRadius: "25px",
- padding: "15px 30px",
- fontSize: "16px",
- fontWeight: "bold",
- cursor: "pointer",
- width: "100%",
- maxWidth: "300px",
- marginBottom: "42px",
- }}
- >
- Try Ente Auth
- </button>
- </a>
+ Try Ente Auth
+ </Button>
</Stack>
);
};