diff --git a/src/view/screens/Login.tsx b/src/view/screens/Login.tsx index 20b30fe01d..acf7e7199c 100644 --- a/src/view/screens/Login.tsx +++ b/src/view/screens/Login.tsx @@ -205,12 +205,19 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => { - + Sign in to {toNiceDomain(serviceUrl)} - + + + Change + @@ -288,6 +295,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { useEffect(() => { let aborted = false setError('') + setServiceDescription(undefined) console.log('Fetching service description', serviceUrl) store.session.describeService(serviceUrl).then( desc => { @@ -347,30 +355,6 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { } } - const InitialLoadView = () => ( - <> - {error ? ( - <> - - - - - - {error} - - - - - Back - - - - ) : ( - - )} - - ) - const Policies = () => { if (!serviceDescription) { return @@ -426,43 +410,40 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { - {serviceDescription ? ( - <> - {error ? ( - - - - - - {error} - - - ) : undefined} - - - - Create a new account - - - - - - - {toNiceDomain(serviceUrl)} - - - + {error ? ( + + + + + + {error} + + + ) : undefined} + + + Create a new account + + + + + + {toNiceDomain(serviceUrl)} + + + + Change + + + {serviceDescription ? ( + <> {serviceDescription?.inviteCodeRequired ? ( void}) => { editable={!isProcessing} /> - + + ) : undefined} + + {serviceDescription ? ( + <> @@ -561,23 +546,23 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { - - - Back - - - - {isProcessing ? ( - - ) : ( - Next - )} - - - ) : ( - - )} + ) : undefined} + + + Back + + + {serviceDescription ? ( + + {isProcessing ? ( + + ) : ( + Next + )} + + ) : undefined} + ) @@ -732,6 +717,22 @@ const styles = StyleSheet.create({ color: colors.white, marginHorizontal: 12, }, + textBtnFakeInnerBtn: { + flexDirection: 'row', + alignItems: 'center', + backgroundColor: colors.blue2, + borderRadius: 6, + paddingVertical: 6, + paddingHorizontal: 8, + marginHorizontal: 6, + }, + textBtnFakeInnerBtnIcon: { + color: colors.white, + marginRight: 4, + }, + textBtnFakeInnerBtnLabel: { + color: colors.white, + }, picker: { flex: 1, width: '100%',