Skip to content

Commit

Permalink
Merge pull request #5368 from leather-wallet/release/snobby-rabbit
Browse files Browse the repository at this point in the history
Release/snobby rabbit
  • Loading branch information
pete-watters authored May 14, 2024
2 parents 7a27fd8 + 16a9e6e commit dcd9be1
Show file tree
Hide file tree
Showing 60 changed files with 772 additions and 910 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"@octokit/types": "12.4.0",
"@radix-ui/colors": "3.0.0",
"@radix-ui/react-accessible-icon": "1.0.3",
"@radix-ui/react-accordion": "1.1.2",
"@radix-ui/react-avatar": "1.0.4",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dropdown-menu": "2.0.6",
Expand Down Expand Up @@ -243,6 +244,7 @@
"varuint-bitcoin": "1.1.2",
"webextension-polyfill": "0.10.0",
"yup": "1.3.3",
"zod": "3.23.6",
"zxcvbn": "4.4.2"
},
"devDependencies": {
Expand Down
114 changes: 90 additions & 24 deletions pnpm-lock.yaml

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

12 changes: 7 additions & 5 deletions src/app/common/hooks/use-stacks-explorer-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ import { useCurrentNetworkState } from '@app/store/networks/networks.hooks';
import { openInNewTab } from '../utils/open-in-new-tab';

export interface HandleOpenStacksTxLinkArgs {
suffix?: string;
searchParams?: URLSearchParams;
txid: string;
}
export function useStacksExplorerLink() {
const { mode } = useCurrentNetworkState();
const { mode, isNakamotoTestnet } = useCurrentNetworkState();

const handleOpenStacksTxLink = useCallback(
({ suffix, txid }: HandleOpenStacksTxLinkArgs) => {
openInNewTab(makeStacksTxExplorerLink({ mode, suffix, txid }));
({ searchParams, txid }: HandleOpenStacksTxLinkArgs) => {
openInNewTab(
makeStacksTxExplorerLink({ mode, searchParams, isNakamoto: isNakamotoTestnet, txid })
);
},
[mode]
[mode, isNakamotoTestnet]
);

return {
Expand Down
Loading

0 comments on commit dcd9be1

Please sign in to comment.