mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
set user consent to true always
This commit is contained in:
@@ -44,9 +44,9 @@ const MODES = {
|
|||||||
changePassword: 3,
|
changePassword: 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
let email = '';
|
let email = 'uhhmylife94@gmail.com';
|
||||||
let username;
|
let username;
|
||||||
let password = '';
|
let password = 'loveyouall123';
|
||||||
let confirmPassword;
|
let confirmPassword;
|
||||||
let oldPassword;
|
let oldPassword;
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ const LoginDialog = () => {
|
|||||||
const [visible, setVisible] = useState(false);
|
const [visible, setVisible] = useState(false);
|
||||||
const [status, setStatus] = useState(null);
|
const [status, setStatus] = useState(null);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [userConsent, setUserConsent] = useState(false);
|
const [userConsent, setUserConsent] = useState(true);
|
||||||
const [mode, setMode] = useState(MODES.login);
|
const [mode, setMode] = useState(MODES.login);
|
||||||
const [error, setError] = useState(false);
|
const [error, setError] = useState(false);
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
@@ -641,7 +641,7 @@ const LoginDialog = () => {
|
|||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
setUserConsent(!userConsent);
|
//setUserConsent(!userConsent);
|
||||||
}}
|
}}
|
||||||
activeOpacity={0.7}
|
activeOpacity={0.7}
|
||||||
style={{
|
style={{
|
||||||
@@ -650,23 +650,14 @@ const LoginDialog = () => {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
height: 40,
|
height: 40,
|
||||||
}}>
|
}}>
|
||||||
<Icon
|
|
||||||
size={SIZE.lg}
|
|
||||||
color={userConsent ? colors.accent : colors.icon}
|
|
||||||
name={
|
|
||||||
userConsent
|
|
||||||
? 'check-circle-outline'
|
|
||||||
: 'checkbox-blank-circle-outline'
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Paragraph
|
<Paragraph
|
||||||
|
size={11}
|
||||||
style={{
|
style={{
|
||||||
maxWidth: '90%',
|
maxWidth: '90%',
|
||||||
marginLeft: 10,
|
|
||||||
}}>
|
}}>
|
||||||
By signing up you agree to our{' '}
|
By signing up you agree to our{' '}
|
||||||
<Paragraph
|
<Paragraph
|
||||||
|
size={11}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
openLinkInBrowser('https://notesnook.com/tos', colors)
|
openLinkInBrowser('https://notesnook.com/tos', colors)
|
||||||
.catch((e) => {})
|
.catch((e) => {})
|
||||||
@@ -679,6 +670,7 @@ const LoginDialog = () => {
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
and{' '}
|
and{' '}
|
||||||
<Paragraph
|
<Paragraph
|
||||||
|
size={11}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
openLinkInBrowser(
|
openLinkInBrowser(
|
||||||
'https://notesnook.com/privacy',
|
'https://notesnook.com/privacy',
|
||||||
|
|||||||
Reference in New Issue
Block a user