tangled
alpha
login
or
join now
stream.place
/
streamplace
79
fork
atom
Live video on the AT Protocol
79
fork
atom
overview
issues
pulls
pipelines
fix login page
Natalie Bridgers
7 months ago
8d23dd2a
1f8b4a68
+17
-36
2 changed files
expand all
collapse all
unified
split
js
app
components
login
login.tsx
src
router.tsx
+17
-26
js/app/components/login/login.tsx
reviewed
···
121
121
{ justifyContent: "center" },
122
122
]}
123
123
>
124
124
+
{/* link to bsky.app/settings */}
124
125
<Button
125
125
-
onPress={() => dispatch(logout())}
126
126
+
onPress={() => {
127
127
+
const u = new URL(
128
128
+
"https://bsky.app/profile/" + userProfile.handle,
129
129
+
);
130
130
+
Linking.openURL(u.toString());
131
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
137
-
Edit profile (Bluesky)
143
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
173
-
zero.py[8],
179
179
+
zero.pt[10],
180
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
243
-
{ flexDirection: "row", justifyContent: "space-between" },
250
250
+
{ flexDirection: "row", justifyContent: "flex-end" },
251
251
+
zero.gap.all[3],
244
252
]}
245
253
>
246
246
-
<Pressable
247
247
-
onPress={() => navigation.navigate("Signup")}
248
248
-
style={[
249
249
-
{
250
250
-
backgroundColor: "#333",
251
251
-
padding: 12,
252
252
-
borderRadius: 8,
253
253
-
},
254
254
-
]}
255
255
-
>
254
254
+
<Button onPress={() => onSignup()} variant="ghost">
256
255
<Text style={[{ color: "white" }]}>Sign Up on Bluesky</Text>
257
257
-
</Pressable>
258
258
-
<Pressable
256
256
+
</Button>
257
257
+
<Button
259
258
onPress={submit}
260
259
disabled={loginState.loading}
261
261
-
style={[
262
262
-
zero.px[6],
263
263
-
{
264
264
-
backgroundColor: "#007AFF",
265
265
-
padding: 12,
266
266
-
borderRadius: 8,
267
267
-
opacity: loginState.loading ? 0.6 : 1,
268
268
-
},
269
269
-
]}
260
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
278
-
</Pressable>
269
269
+
</Button>
279
270
</View>
280
271
</View>
281
272
</View>
-10
js/app/src/router.tsx
reviewed
···
43
43
Home,
44
44
LogIn,
45
45
Menu,
46
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
543
-
}}
544
544
-
/>
545
545
-
<Drawer.Screen
546
546
-
name="Signup"
547
547
-
component={SignUp}
548
548
-
options={{
549
549
-
drawerIcon: () => <Notebook color={foregroundColor} size={24} />,
550
550
-
drawerItemStyle: { display: "none" },
551
551
-
drawerLabel: () => <Text variant="h5">Sign up</Text>,
552
542
}}
553
543
/>
554
544
<Drawer.Screen