Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'mary-ext-fix/app-password-submit' into main

+6 -9
+6 -9
src/view/com/modals/AddAppPasswords.tsx
··· 62 62 const {_} = useLingui() 63 63 const {closeModal} = useModalControls() 64 64 const {data: passwords} = useAppPasswordsQuery() 65 - const createMutation = useAppPasswordCreateMutation() 65 + const {mutateAsync: mutateAppPassword, isPending} = 66 + useAppPasswordCreateMutation() 66 67 const [name, setName] = useState( 67 68 shadesOfBlue[Math.floor(Math.random() * shadesOfBlue.length)], 68 69 ) ··· 107 108 } 108 109 109 110 try { 110 - const newPassword = await createMutation.mutateAsync({name}) 111 + const newPassword = await mutateAppPassword({name}) 111 112 if (newPassword) { 112 113 setAppPassword(newPassword.password) 113 114 } else { ··· 170 171 autoFocus={true} 171 172 maxLength={32} 172 173 selectTextOnFocus={true} 173 - multiline={true} // need this to be true otherwise selectTextOnFocus doesn't work 174 - numberOfLines={1} // hack for multiline so only one line shows (android) 175 - scrollEnabled={false} // hack for multiline so only one line shows (ios) 176 - blurOnSubmit={true} // hack for multiline so it submits 177 - editable={!appPassword} 174 + blurOnSubmit={true} 175 + editable={!isPending} 178 176 returnKeyType="done" 179 - onEndEditing={createAppPassword} 177 + onSubmitEditing={createAppPassword} 180 178 accessible={true} 181 179 accessibilityLabel={_(msg`Name`)} 182 180 accessibilityHint={_(msg`Input name for app password`)} ··· 253 251 width: '100%', 254 252 paddingVertical: 10, 255 253 paddingHorizontal: 8, 256 - marginTop: 6, 257 254 fontSize: 17, 258 255 letterSpacing: 0.25, 259 256 fontWeight: '400',