Live video on the AT Protocol

fix login page

+17 -36
+17 -26
js/app/components/login/login.tsx
··· 121 121 { justifyContent: "center" }, 122 122 ]} 123 123 > 124 + {/* link to bsky.app/settings */} 124 125 <Button 125 - onPress={() => dispatch(logout())} 126 + onPress={() => { 127 + const u = new URL( 128 + "https://bsky.app/profile/" + userProfile.handle, 129 + ); 130 + Linking.openURL(u.toString()); 131 + }} 126 132 variant="secondary" 127 133 leftIcon={<UserRoundPen color="white" />} 128 134 style={[ ··· 134 140 ]} 135 141 > 136 142 <Text style={[{ color: "white", textAlign: "center" }]}> 137 - Edit profile (Bluesky) 143 + Edit profile (on Bluesky) 138 144 </Text> 139 145 </Button> 140 146 </View> ··· 170 176 <View 171 177 style={[ 172 178 zero.px[8], 173 - zero.py[8], 179 + zero.pt[10], 180 + zero.pb[6], 174 181 zero.r.lg, 175 182 { backgroundColor: theme.colors.card }, 176 183 { width: "100%" }, ··· 240 247 </View> 241 248 <View 242 249 style={[ 243 - { flexDirection: "row", justifyContent: "space-between" }, 250 + { flexDirection: "row", justifyContent: "flex-end" }, 251 + zero.gap.all[3], 244 252 ]} 245 253 > 246 - <Pressable 247 - onPress={() => navigation.navigate("Signup")} 248 - style={[ 249 - { 250 - backgroundColor: "#333", 251 - padding: 12, 252 - borderRadius: 8, 253 - }, 254 - ]} 255 - > 254 + <Button onPress={() => onSignup()} variant="ghost"> 256 255 <Text style={[{ color: "white" }]}>Sign Up on Bluesky</Text> 257 - </Pressable> 258 - <Pressable 256 + </Button> 257 + <Button 259 258 onPress={submit} 260 259 disabled={loginState.loading} 261 - style={[ 262 - zero.px[6], 263 - { 264 - backgroundColor: "#007AFF", 265 - padding: 12, 266 - borderRadius: 8, 267 - opacity: loginState.loading ? 0.6 : 1, 268 - }, 269 - ]} 260 + style={[zero.px[6]]} 270 261 > 271 262 <Text style={[{ color: "white" }]}> 272 263 {loginState.loading ? ( ··· 275 266 "Log in" 276 267 )} 277 268 </Text> 278 - </Pressable> 269 + </Button> 279 270 </View> 280 271 </View> 281 272 </View>
-10
js/app/src/router.tsx
··· 43 43 Home, 44 44 LogIn, 45 45 Menu, 46 - Notebook, 47 46 PanelLeftClose, 48 47 PanelLeftOpen, 49 48 Settings as SettingsIcon, ··· 540 539 options={{ 541 540 drawerIcon: () => <LogIn color={foregroundColor} size={24} />, 542 541 drawerLabel: () => <Text variant="h5">Login</Text>, 543 - }} 544 - /> 545 - <Drawer.Screen 546 - name="Signup" 547 - component={SignUp} 548 - options={{ 549 - drawerIcon: () => <Notebook color={foregroundColor} size={24} />, 550 - drawerItemStyle: { display: "none" }, 551 - drawerLabel: () => <Text variant="h5">Sign up</Text>, 552 542 }} 553 543 /> 554 544 <Drawer.Screen