diff options
Diffstat (limited to 'src/view/screens')
-rw-r--r-- | src/view/screens/Contacts.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/Login.tsx | 20 | ||||
-rw-r--r-- | src/view/screens/PostLikedBy.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/PostRepostedBy.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/PostThread.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/Settings.tsx | 6 |
6 files changed, 17 insertions, 17 deletions
diff --git a/src/view/screens/Contacts.tsx b/src/view/screens/Contacts.tsx index 70b15a86f..65c933b38 100644 --- a/src/view/screens/Contacts.tsx +++ b/src/view/screens/Contacts.tsx @@ -47,7 +47,7 @@ export const Contacts = ({visible, params}: ScreenParams) => { selectedIndex={0} swipeGestureInterp={selectorInterp} /> - {!!store.me.name && <ProfileFollowsComponent name={store.me.name} />} + {!!store.me.handle && <ProfileFollowsComponent name={store.me.handle} />} </View> ) } diff --git a/src/view/screens/Login.tsx b/src/view/screens/Login.tsx index bc40327bd..96c010321 100644 --- a/src/view/screens/Login.tsx +++ b/src/view/screens/Login.tsx @@ -109,7 +109,7 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => { const store = useStores() const [isProcessing, setIsProcessing] = useState<boolean>(false) const [error, setError] = useState<string>('') - const [username, setUsername] = useState<string>('') + const [handle, setHandle] = useState<string>('') const [password, setPassword] = useState<string>('') const onPressNext = async () => { @@ -118,7 +118,7 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => { try { await store.session.login({ service: 'http://localhost:2583/', - username, + handle, password, }) } catch (e: any) { @@ -164,8 +164,8 @@ const Signin = ({onPressBack}: {onPressBack: () => void}) => { placeholderTextColor={colors.blue0} autoCapitalize="none" autoFocus - value={username} - onChangeText={setUsername} + value={handle} + onChangeText={setHandle} editable={!isProcessing} /> </View> @@ -211,7 +211,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { const [inviteCode, setInviteCode] = useState<string>('') const [email, setEmail] = useState<string>('') const [password, setPassword] = useState<string>('') - const [username, setUsername] = useState<string>('') + const [handle, setHandle] = useState<string>('') useEffect(() => { let aborted = false @@ -247,7 +247,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { if (!password) { return setError('Please choose your password.') } - if (!username) { + if (!handle) { return setError('Please choose your username.') } setError('') @@ -256,7 +256,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { await store.session.createAccount({ service: 'http://localhost:2583/', email, - username: `${username}.${userDomain}`, + handle: `${handle}.${userDomain}`, password, inviteCode, }) @@ -379,8 +379,8 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { placeholder="eg alice" placeholderTextColor={colors.blue0} autoCapitalize="none" - value={username} - onChangeText={v => setUsername(cleanUsername(v))} + value={handle} + onChangeText={v => setHandle(cleanUsername(v))} editable={!isProcessing} /> </View> @@ -405,7 +405,7 @@ const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { <Text style={[s.white, s.p10]}> Your full username will be{' '} <Text style={s.bold}> - @{username}.{userDomain} + @{handle}.{userDomain} </Text> </Text> </View> diff --git a/src/view/screens/PostLikedBy.tsx b/src/view/screens/PostLikedBy.tsx index 72c6016e4..8adc58c89 100644 --- a/src/view/screens/PostLikedBy.tsx +++ b/src/view/screens/PostLikedBy.tsx @@ -9,7 +9,7 @@ import {makeRecordUri} from '../lib/strings' export const PostLikedBy = ({visible, params}: ScreenParams) => { const store = useStores() const {name, rkey} = params - const uri = makeRecordUri(name, 'app.bsky.post', rkey) + const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey) useEffect(() => { if (visible) { diff --git a/src/view/screens/PostRepostedBy.tsx b/src/view/screens/PostRepostedBy.tsx index d9a59a268..263af195d 100644 --- a/src/view/screens/PostRepostedBy.tsx +++ b/src/view/screens/PostRepostedBy.tsx @@ -9,7 +9,7 @@ import {makeRecordUri} from '../lib/strings' export const PostRepostedBy = ({visible, params}: ScreenParams) => { const store = useStores() const {name, rkey} = params - const uri = makeRecordUri(name, 'app.bsky.post', rkey) + const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey) useEffect(() => { if (visible) { diff --git a/src/view/screens/PostThread.tsx b/src/view/screens/PostThread.tsx index a30b5521b..e872db2dc 100644 --- a/src/view/screens/PostThread.tsx +++ b/src/view/screens/PostThread.tsx @@ -9,7 +9,7 @@ import {useStores} from '../../state' export const PostThread = ({visible, params}: ScreenParams) => { const store = useStores() const {name, rkey} = params - const uri = makeRecordUri(name, 'app.bsky.post', rkey) + const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey) useEffect(() => { if (visible) { diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index 6bc3d1015..0fc09e6ab 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -33,16 +33,16 @@ export const Settings = observer(function Settings({visible}: ScreenParams) { <Text style={[s.blue3, s.bold]}>Sign out</Text> </TouchableOpacity> </View> - <Link href={`/profile/${store.me.name}`} title="Your profile"> + <Link href={`/profile/${store.me.handle}`} title="Your profile"> <View style={styles.profile}> <UserAvatar size={40} displayName={store.me.displayName} - name={store.me.name || ''} + handle={store.me.handle || ''} /> <View style={[s.ml10]}> <Text style={[s.f18]}>{store.me.displayName}</Text> - <Text style={[s.gray5]}>@{store.me.name}</Text> + <Text style={[s.gray5]}>@{store.me.handle}</Text> </View> </View> </Link> |