mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-10 04:21:21 +02:00
mobile: fix password placeholders
This commit is contained in:
@@ -48,6 +48,7 @@ import TwoFactorVerification from "./two-factor";
|
||||
import { useLogin } from "./use-login";
|
||||
import FormInput, { validators } from "../ui/input/form-input";
|
||||
import AppIcon from "../ui/AppIcon";
|
||||
import { PASSWORD_PLACEHOLDER } from "../../utils/constants";
|
||||
|
||||
const LoginSteps = {
|
||||
emailAuth: 1,
|
||||
@@ -209,7 +210,7 @@ export const Login = ({
|
||||
autoComplete="password"
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
placeholder={strings.password()}
|
||||
placeholder={PASSWORD_PLACEHOLDER}
|
||||
marginBottom={0}
|
||||
editable={!loading}
|
||||
validators={[validators.required(strings.passwordRequired())]}
|
||||
|
||||
@@ -50,6 +50,7 @@ import { strings } from "@notesnook/intl";
|
||||
import { getObfuscatedEmail } from "../../utils/functions";
|
||||
import { DefaultAppStyles } from "../../utils/styles";
|
||||
import FormInput, { validators } from "../ui/input/form-input";
|
||||
import { PASSWORD_PLACEHOLDER } from "../../utils/constants";
|
||||
|
||||
export const SessionExpired = () => {
|
||||
const { colors } = useThemeColors();
|
||||
@@ -206,7 +207,7 @@ export const SessionExpired = () => {
|
||||
autoComplete="password"
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
placeholder={strings.password()}
|
||||
placeholder={PASSWORD_PLACEHOLDER}
|
||||
onSubmitEditing={() => {
|
||||
login();
|
||||
}}
|
||||
|
||||
@@ -45,6 +45,7 @@ import { Spacing } from "../../common/design/spacing";
|
||||
import { SETTING_ACCOUNT_SVG } from "../../assets/images/assets";
|
||||
import { ProgressPills } from "../intro/progress-pills";
|
||||
import { sleep } from "../../utils/time";
|
||||
import { PASSWORD_PLACEHOLDER } from "../../utils/constants";
|
||||
|
||||
const getSettingAccountSvg = (dark: boolean) => {
|
||||
if (dark) return SETTING_ACCOUNT_SVG;
|
||||
@@ -220,7 +221,7 @@ export const Signup = ({
|
||||
blurOnSubmit={false}
|
||||
autoCorrect={false}
|
||||
label={strings.password()}
|
||||
placeholder="•••••••••"
|
||||
placeholder={PASSWORD_PLACEHOLDER}
|
||||
validators={[validators.required(strings.passwordRequired())]}
|
||||
onSubmitEditing={() => {
|
||||
if (formRef.current.validateField("password")) return;
|
||||
@@ -242,7 +243,7 @@ export const Signup = ({
|
||||
autoCorrect={false}
|
||||
blurOnSubmit={false}
|
||||
label={strings.confirmPassword()}
|
||||
placeholder="•••••••••"
|
||||
placeholder={PASSWORD_PLACEHOLDER}
|
||||
validators={[
|
||||
validators.required(strings.confirmPasswordRequired()),
|
||||
validators.matchField(
|
||||
|
||||
@@ -26,6 +26,8 @@ export const IOS_APPGROUPID = "group.org.streetwriters.notesnook";
|
||||
export const FILE_SIZE_LIMIT = 500 * 1024 * 1024;
|
||||
export const IMAGE_SIZE_LIMIT = 50 * 1024 * 1024;
|
||||
|
||||
export const PASSWORD_PLACEHOLDER = "•••••••••";
|
||||
|
||||
export const BETA = getVersion().includes("beta");
|
||||
|
||||
export const STORE_LINK =
|
||||
|
||||
Reference in New Issue
Block a user