Skip to content

Commit 391457a

Browse files
committed
refactor: wip lens feeds
1 parent 3fc2d9e commit 391457a

File tree

7 files changed

+708
-12
lines changed

7 files changed

+708
-12
lines changed

cspell.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
"version": "0.2",
33
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
4-
"dictionaries": ["typescript", "node", "npm", "html", "css", "fonts"],
4+
"dictionaries": [
5+
"typescript",
6+
"node",
7+
"npm",
8+
"html",
9+
"css",
10+
"fonts"
11+
],
512
"ignorePaths": [
613
"./packages/gun-utils/gun.js",
714
"./packages/icons/**",
@@ -25,7 +32,11 @@
2532
"pnpm-lock.yaml",
2633
"qya-aa.json"
2734
],
28-
"TODO: fix those words": ["bridgable", "clonable", "sniffings"],
35+
"TODO: fix those words": [
36+
"bridgable",
37+
"clonable",
38+
"sniffings"
39+
],
2940
"ignoreWords": [
3041
"aeth",
3142
"algr",
@@ -238,7 +249,11 @@
238249
"zksync",
239250
"zora"
240251
],
241-
"ignoreRegExpList": ["/[A-Za-z0-9]{44}/", "/[A-Za-z0-9]{46}/", "/[A-Za-z0-9]{59}/"],
252+
"ignoreRegExpList": [
253+
"/[A-Za-z0-9]{44}/",
254+
"/[A-Za-z0-9]{46}/",
255+
"/[A-Za-z0-9]{59}/"
256+
],
242257
"overrides": [],
243258
"words": [
244259
"Arbitrum",
@@ -249,6 +264,7 @@
249264
"linkedin",
250265
"luma",
251266
"muln",
267+
"reposts",
252268
"Sepolia",
253269
"tanstack",
254270
"tiktok",
@@ -257,4 +273,4 @@
257273
"waitlist",
258274
"youtube"
259275
]
260-
}
276+
}

packages/plugins/Web3Profile/src/SiteAdaptor/components/Lens/FollowLensDialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ export function FollowLensDialog({ handle, onClose }: Props) {
152152
accountAddress: lensAccount?.address,
153153
onSuccess: (width: number, height: number) => {
154154
showConfettiExplosion(width, height)
155-
updateFollowingStatus(currentAccountAddress, handle, true)
155+
updateFollowingStatus(currentAccountAddress, targetAccountAddress, true)
156156
},
157157
onFailed: () => updateFollowingStatus(currentAccountAddress, handle, false),
158158
})
159159
const { loading: unfollowLoading, handleUnfollow } = useUnfollow({
160-
accountAddress: lensAccount?.address,
161-
onSuccess: () => updateFollowingStatus(currentAccountAddress, handle, false),
162-
onFailed: () => updateFollowingStatus(currentAccountAddress, handle, true),
160+
accountAddress: lensAccount?.address as string,
161+
onSuccess: () => updateFollowingStatus(currentAccountAddress, targetAccountAddress, false),
162+
onFailed: () => updateFollowingStatus(currentAccountAddress, targetAccountAddress, true),
163163
})
164164
// #endregion
165165

packages/plugins/Web3Profile/src/SiteAdaptor/hooks/Lens/useUnfollow.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { useMyLensAccountAddress } from './useMyLensAccountAddress.js'
99

1010
export interface UnfollowOptions {
1111
accountAddress?: string
12-
// signless?: boolean
1312
onSuccess?: () => void
1413
onFailed?: () => void
1514
}

packages/shared-base/src/Pageable/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function createIndicator(indicator?: PageIndicator, id?: string): PageInd
3232
}
3333
}
3434

35-
export function createNextIndicator(indicator?: PageIndicator, id?: string): PageIndicator {
35+
export function createNextIndicator(indicator?: PageIndicator, id?: string | null): PageIndicator {
3636
const index = (indicator?.index ?? 0) + 1
3737
return typeof id === 'string' ?
3838
{

0 commit comments

Comments
 (0)