π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update
Manav Rathi61936029e812
diff --git a/web/apps/photos/package.json b/web/apps/photos/package.jsonindex b725914b21..303d6cdf2c 100644--- a/web/apps/photos/package.json+++ b/web/apps/photos/package.json@@ -27,7 +27,7 @@"piexifjs": "^1.0.6","pure-react-carousel": "^1.30.1","react-dropzone": "^14.2",- "react-otp-input": "^2.3.1",+ "react-otp-input": "^3.1.1","react-select": "^5.8.0","react-top-loading-bar": "^2.3.1","react-virtualized-auto-sizer": "^1.0",diff --git a/web/packages/accounts/components/two-factor/VerifyForm.tsx b/web/packages/accounts/components/two-factor/VerifyForm.tsxindex 3a3d7ac7f3..2881397ef8 100644--- a/web/packages/accounts/components/two-factor/VerifyForm.tsx+++ b/web/packages/accounts/components/two-factor/VerifyForm.tsx@@ -4,7 +4,7 @@ import {CenteredFlex,VerticallyCentered,} from "@ente/shared/components/Container";-import { Box, Typography } from "@mui/material";+import { Box, Typography, styled } from "@mui/material";import { Formik, type FormikHelpers } from "formik";import { t } from "i18next";import { useRef, useState } from "react";@@ -71,17 +71,21 @@ export default function VerifyTwoFactor(props: Props) {</Typography><Box my={2}><OtpInput- ref={otpInputRef}- shouldAutoFocusvalue={values.otp}onChange={onChange(handleChange("otp"),submitForm,)}numInputs={6}- separator={"-"}- isInputNum- className={"otp-input"}+ // ref={otpInputRef}+ renderSeparator={<span>-</span>}+ renderInput={(props) => (+ <IndividualInput {...props} />+ )}+ shouldAutoFocus+ // separator={"-"}+ // isInputNum+ // className={"otp-input"}/>{errors.otp && (<CenteredFlex sx={{ mt: 1 }}>@@ -107,3 +111,22 @@ export default function VerifyTwoFactor(props: Props) {</Formik>);}++const IndividualInput = styled("input")(+ ({ theme }) => `+ font-size: 2rem;+ padding: 4px 12px;+ min-width: 3rem;+ margin-inline: 8px;+ border: 1px solid ${theme.colors.accent.A700};+ border-radius: 1px;+ outline-color: ${theme.colors.accent.A300};+ transition: 0.5s;++ @media (width < 30em) {+ font-size: 1rem;+ padding: 4px;+ min-width: 2rem;+ }+`,+);diff --git a/web/yarn.lock b/web/yarn.lockindex 411a432aab..a1dc11d308 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -3743,10 +3743,10 @@ react-is@^18.3.1:resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e"integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==-react-otp-input@^2.3.1:- version "2.4.0"- resolved "https://registry.yarnpkg.com/react-otp-input/-/react-otp-input-2.4.0.tgz#0f0a3de1d8c8d564e2e4fbe5d6b7b56e29e3a6e6"- integrity sha512-AIgl7u4sS9BTNCxX1xlaS5fPWay/Zml8Ho5LszXZKXrH1C/TiFsTQGmtl13UecQYO3mSF3HUzG2rrDf0sjEFmg==+react-otp-input@^3.1.1:+ version "3.1.1"+ resolved "https://registry.yarnpkg.com/react-otp-input/-/react-otp-input-3.1.1.tgz#910169629812c40a614e6c175cc2c5f36102bb61"+ integrity sha512-bjPavgJ0/Zmf/AYi4onj8FbH93IjeD+e8pWwxIJreDEWsU1ILR5fs8jEJmMGWSBe/yyvPP6X/W6Mk9UkOCkTPw==react-refresh@^0.14.2:version "0.14.2"