Why the weird import order? Because it was the only way to make the
linter happy
This commit is contained in:
leander committed 2024-07-08 21:17:50 +02:00
1 parent fc8e6c9745
commit 5ff7af78f8
4 files changed
+43 -2

No files matched your search

+13 -2
View File
@@ -1,6 +1,7 @@
import React from 'react';
import { View, StyleSheet, ActivityIndicator } from 'react-native';
import PrivacyButton from 'src/components/PrivacyButton';
import theme from 'src/theme';
import MembershipInfo from './MembershipInfo';
@@ -20,10 +21,20 @@ const Membership = () => {
}
if (isAuthenticated) {
return <Proof onLogoutPress={onLogoutPress} fetchUser={fetchUser} isFetchingUserData={isFetchingUserData} />;
return (
<>
<Proof onLogoutPress={onLogoutPress} fetchUser={fetchUser} isFetchingUserData={isFetchingUserData} />
<PrivacyButton />
</>
);
}
return <MembershipInfo onRegister={onRegisterPress} onLogin={onLoginPress} />;
return (
<>
<MembershipInfo onRegister={onRegisterPress} onLogin={onLoginPress} />
<PrivacyButton />
</>
);
};
export default Membership;
+2
View File
@@ -5,6 +5,7 @@ import { Button, Incubator } from 'react-native-ui-lib';
import FormErrors from 'src/components/FormErrors';
import FormInput from 'src/components/FormInput';
import PrivacyButton from 'src/components/PrivacyButton';
import theme from 'src/theme';
import useUserRegister from './useUserRegister';
@@ -58,6 +59,7 @@ const UserRegister = () => {
<Text>Registrer meg</Text>
</Button>
{isRegisteringUser && <ActivityIndicator color={theme.colors.neufOrange} />}
<PrivacyButton />
</ScrollView>
</View>
<Toast