Closes #11
Why the weird import order? Because it was the only way to make the linter happy
This commit is contained in:
4 files changed
+43
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user