Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
runjuu committed Apr 28, 2023
1 parent 6501f4a commit 2af7337
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 73 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"start": "pnpm --filter crossbell.io run start"
},
"dependencies": {
"@crossbell/connect-kit": "0.0.70",
"@crossbell/contract": "0.0.70",
"@crossbell/indexer": "0.0.70",
"@crossbell/connect-kit": "0.0.77",
"@crossbell/contract": "0.0.77",
"@crossbell/indexer": "0.0.77",
"@crossbell/ipfs-gateway": "0.0.18",
"@crossbell/ipfs-react": "0.0.18",
"@crossbell/notification": "0.0.70",
"@crossbell/ui": "0.0.70",
"@crossbell/util-ethers": "0.0.70",
"@crossbell/util-hooks": "0.0.70",
"@crossbell/util-metadata": "0.0.70",
"@crossbell/notification": "0.0.77",
"@crossbell/ui": "0.0.77",
"@crossbell/util-ethers": "0.0.77",
"@crossbell/util-hooks": "0.0.77",
"@crossbell/util-metadata": "0.0.77",
"@ctrl/tinycolor": "3.6.0",
"@emoji-mart/react": "1.1.1",
"@emotion/cache": "11.10.7",
Expand Down
147 changes: 85 additions & 62 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions shared/wallet/hooks.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
useAccountState,
useConnectModal,
showUpgradeAccountModal,
showUpgradeEmailAccountModal,
useSelectCharactersModal,
} from "@crossbell/connect-kit";
import { useRefCallback } from "@crossbell/util-hooks";
Expand All @@ -16,7 +16,7 @@ export function useLoginChecker() {
switch (account?.type) {
case "email":
if (walletRequired) {
showUpgradeAccountModal();
showUpgradeEmailAccountModal();
return false;
} else {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "@crossbell/connect-kit";
import { useNoteStatus } from "@crossbell/indexer";
import { useRefCallback } from "@crossbell/util-hooks";
import { useAddress } from "@crossbell/contract";

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

Expand All @@ -33,7 +34,8 @@ export type NoteModel = {
};

export function useNoteModel({ characterId, noteId }: UseNoteActionsConfig) {
const { data: status } = useNoteStatus(characterId, noteId);
const address = useAddress() ?? "";
const { data: status } = useNoteStatus({ characterId, noteId, address });
const [{ isLiked }] = useIsNoteLiked({
noteId,
characterId,
Expand Down
6 changes: 6 additions & 0 deletions sites/crossbell.io/pages/notes/[noteid]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ export const getServerSideProps: GetServerSideProps<PageProps> = async (
}
}) as [NoteEntity | null, CharacterEntity | null];

if (!note) {
return {
notFound: true,
};
}

return {
props: {
note,
Expand Down

1 comment on commit 2af7337

@vercel
Copy link

@vercel vercel bot commented on 2af7337 Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

crossbell-io – ./

crossbell-io-crossbell.vercel.app
crossbell.vercel.app
crossbell-io-git-main-crossbell.vercel.app

Please sign in to comment.