Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 2af7337

Browse files
committed
chore: update deps
1 parent 6501f4a commit 2af7337

File tree

5 files changed

+104
-73
lines changed

5 files changed

+104
-73
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"start": "pnpm --filter crossbell.io run start"
1818
},
1919
"dependencies": {
20-
"@crossbell/connect-kit": "0.0.70",
21-
"@crossbell/contract": "0.0.70",
22-
"@crossbell/indexer": "0.0.70",
20+
"@crossbell/connect-kit": "0.0.77",
21+
"@crossbell/contract": "0.0.77",
22+
"@crossbell/indexer": "0.0.77",
2323
"@crossbell/ipfs-gateway": "0.0.18",
2424
"@crossbell/ipfs-react": "0.0.18",
25-
"@crossbell/notification": "0.0.70",
26-
"@crossbell/ui": "0.0.70",
27-
"@crossbell/util-ethers": "0.0.70",
28-
"@crossbell/util-hooks": "0.0.70",
29-
"@crossbell/util-metadata": "0.0.70",
25+
"@crossbell/notification": "0.0.77",
26+
"@crossbell/ui": "0.0.77",
27+
"@crossbell/util-ethers": "0.0.77",
28+
"@crossbell/util-hooks": "0.0.77",
29+
"@crossbell/util-metadata": "0.0.77",
3030
"@ctrl/tinycolor": "3.6.0",
3131
"@emoji-mart/react": "1.1.1",
3232
"@emotion/cache": "11.10.7",

pnpm-lock.yaml

Lines changed: 85 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shared/wallet/hooks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
useAccountState,
33
useConnectModal,
4-
showUpgradeAccountModal,
4+
showUpgradeEmailAccountModal,
55
useSelectCharactersModal,
66
} from "@crossbell/connect-kit";
77
import { useRefCallback } from "@crossbell/util-hooks";
@@ -16,7 +16,7 @@ export function useLoginChecker() {
1616
switch (account?.type) {
1717
case "email":
1818
if (walletRequired) {
19-
showUpgradeAccountModal();
19+
showUpgradeEmailAccountModal();
2020
return false;
2121
} else {
2222
return true;

sites/crossbell.io/components/common/Note/hooks/use-note-model.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from "@crossbell/connect-kit";
99
import { useNoteStatus } from "@crossbell/indexer";
1010
import { useRefCallback } from "@crossbell/util-hooks";
11+
import { useAddress } from "@crossbell/contract";
1112

1213
import { useLoginChecker } from "~/shared/wallet/hooks";
1314

@@ -33,7 +34,8 @@ export type NoteModel = {
3334
};
3435

3536
export function useNoteModel({ characterId, noteId }: UseNoteActionsConfig) {
36-
const { data: status } = useNoteStatus(characterId, noteId);
37+
const address = useAddress() ?? "";
38+
const { data: status } = useNoteStatus({ characterId, noteId, address });
3739
const [{ isLiked }] = useIsNoteLiked({
3840
noteId,
3941
characterId,

sites/crossbell.io/pages/notes/[noteid]/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ export const getServerSideProps: GetServerSideProps<PageProps> = async (
211211
}
212212
}) as [NoteEntity | null, CharacterEntity | null];
213213

214+
if (!note) {
215+
return {
216+
notFound: true,
217+
};
218+
}
219+
214220
return {
215221
props: {
216222
note,

0 commit comments

Comments
 (0)