-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
β¨(lld): add actions in ordis drawer #7951
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
4 Skipped Deployments
|
8dc6c01
to
6ceb587
Compare
6ceb587
to
add96ed
Compare
@@ -7,7 +7,9 @@ import { BitcoinAccount } from "@ledgerhq/coin-bitcoin/lib/types"; | |||
import { useBitcoinAccountModel } from "./useBitcoinAccountModel"; | |||
import InscriptionDetailsDrawer from "../../components/Inscriptions/DetailsDrawer"; | |||
|
|||
type ViewProps = ReturnType<typeof useBitcoinAccountModel>; | |||
type ViewProps = ReturnType<typeof useBitcoinAccountModel> & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not adding account
to the return type of useBitcoinAccountModel
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No real reason just find it more explicit to do this way. So we know that we don't change account in the Model
...p/src/newArch/features/Collectibles/Ordinals/components/Inscriptions/DetailsDrawer/index.tsx
Outdated
Show resolved
Hide resolved
apps/ledger-live-desktop/src/newArch/features/Collectibles/utils/typeGuardsChecker.ts
Outdated
Show resolved
Hide resolved
})), | ||
|
||
...(marketplacePages.length > 0 ? [{ id: "sep2", type: "separator", label: "" }] : []), | ||
explorerLink && { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if explorerLink
is falsy, you will get an unwanted false
value in your array
]); | ||
} else { | ||
const linksRecord = links as Record<string, string>; | ||
return safeList([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here , avoid having a [false, false, false]
or mixed with false array type
import { NFTMetadata, ProtoNFT } from "@ledgerhq/types-live"; | ||
import { isNFTMetadata } from "../utils/typeGuardsChecker"; | ||
import { createOrdinalExplorerUrl } from "../utils/createOrdinalExplorerUrl"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(suggestion) can you summarise in few words what this hook stands for please?
apps/ledger-live-desktop/src/newArch/features/Collectibles/hooks/useHideCollection.ts
Outdated
Show resolved
Hide resolved
apps/ledger-live-desktop/src/newArch/features/Collectibles/hooks/useCreateLinks.tsx
Outdated
Show resolved
Hide resolved
add96ed
to
e743121
Compare
β Checklist
npx changeset
was attached.π Description
Refactor hooks that implements the actions inside nft/ordis drawer so it works using our nft metadata and simplehash API
Inscriptions can be seen on magicEden / ordinals.com or set as custom lock screen on stax/flex
Screen.Recording.2024-09-30.at.15.51.47.mov
β Context
π§ Checklist for the PR Reviewers