This commit is contained in:
Manav Rathi
2024-06-03 11:45:45 +05:30
parent d0640a094b
commit e29908f8b3
2 changed files with 7 additions and 7 deletions

View File

@@ -4,16 +4,17 @@ import DialogTitleWithCloseButton from "@ente/shared/components/DialogBox/TitleW
import { getRecoveryKey } from "@ente/shared/crypto/helpers";
import { downloadAsFile } from "@ente/shared/utils";
import {
Box,
Button,
Dialog,
DialogActions,
DialogContent,
Typography,
styled,
} from "@mui/material";
import * as bip39 from "bip39";
import { t } from "i18next";
import { useEffect, useState } from "react";
import { DashedBorderWrapper } from "./styledComponents";
// mobile client library only supports english.
bip39.setDefaultWordlist("english");
@@ -82,3 +83,8 @@ function RecoveryKey({ somethingWentWrong, isMobile, ...props }: Props) {
);
}
export default RecoveryKey;
const DashedBorderWrapper = styled(Box)(({ theme }) => ({
border: `1px dashed ${theme.palette.grey.A400}`,
borderRadius: theme.spacing(1),
}));

View File

@@ -1,6 +0,0 @@
import { Box, styled } from "@mui/material";
export const DashedBorderWrapper = styled(Box)(({ theme }) => ({
border: `1px dashed ${theme.palette.grey.A400}`,
borderRadius: theme.spacing(1),
}));