Fix "log in", "log out" to "sign in", "sign out" (#7739)

* log to sign

* logged to signed
This commit is contained in:
Minseo Lee
2025-02-18 01:52:06 +09:00
committed by GitHub
parent 326445d3af
commit d805dec08f
22 changed files with 35 additions and 33 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ export function useListMembershipAddMutation() {
>({
mutationFn: async ({listUri, actorDid}) => {
if (!currentAccount) {
throw new Error('Not logged in')
throw new Error('Not signed in')
}
const res = await agent.app.bsky.graph.listitem.create(
{repo: currentAccount.did},
@@ -160,7 +160,7 @@ export function useListMembershipRemoveMutation() {
>({
mutationFn: async ({membershipUri}) => {
if (!currentAccount) {
throw new Error('Not logged in')
throw new Error('Not signed in')
}
const membershipUrip = new AtUri(membershipUri)
await agent.app.bsky.graph.listitem.delete({
+2 -2
View File
@@ -60,7 +60,7 @@ export function useListCreateMutation() {
avatar,
}) {
if (!currentAccount) {
throw new Error('Not logged in')
throw new Error('Not signed in')
}
if (
purpose !== 'app.bsky.graph.defs#curatelist' &&
@@ -126,7 +126,7 @@ export function useListMetadataMutation() {
async mutationFn({uri, name, description, descriptionFacets, avatar}) {
const {hostname, rkey} = new AtUri(uri)
if (!currentAccount) {
throw new Error('Not logged in')
throw new Error('Not signed in')
}
if (currentAccount.did !== hostname) {
throw new Error('You do not own this list')
@@ -18,7 +18,7 @@ export function useUpdateActorDeclaration({
return useMutation({
mutationFn: async (allowIncoming: 'all' | 'none' | 'following') => {
if (!currentAccount) throw new Error('Not logged in')
if (!currentAccount) throw new Error('Not signed in')
const result = await agent.api.com.atproto.repo.putRecord({
repo: currentAccount.did,
collection: 'chat.bsky.actor.declaration',
@@ -68,7 +68,7 @@ export function useDeleteActorDeclaration() {
return useMutation({
mutationFn: async () => {
if (!currentAccount) throw new Error('Not logged in')
if (!currentAccount) throw new Error('Not signed in')
// TODO(sam): remove validate: false once PDSes have the new lexicon
const result = await agent.api.com.atproto.repo.deleteRecord({
repo: currentAccount.did,
+1 -1
View File
@@ -32,7 +32,7 @@ export function usePinnedPostMutation() {
updatePostShadow(queryClient, postUri, {pinned: pinCurrentPost})
// get the currently pinned post so we can optimistically remove the pin from it
if (!currentAccount) throw new Error('Not logged in')
if (!currentAccount) throw new Error('Not signed in')
const {data: profile} = await agent.getProfile({
actor: currentAccount.did,
})
+1 -1
View File
@@ -294,7 +294,7 @@ export function useDeleteStarterPackMutation({
return useMutation({
mutationFn: async ({listUri, rkey}: {listUri?: string; rkey: string}) => {
if (!agent.session) {
throw new Error(`Requires logged in user`)
throw new Error(`Requires signed in user`)
}
if (listUri) {