Skip to content

Commit

Permalink
chore(ops): update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay committed Nov 16, 2023
1 parent 6f2aeef commit 31b96e7
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 146 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@ordzaar/standard-prettier": "^0.4.0",
"@ordzaar/standard-web-linter": "^0.3.7",
"@ordzaar/standard-web-linter": "^0.4.0",
"husky": "^8.0.3",
"turbo": "^1.10.16"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ord-connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"preview": "vite preview"
},
"devDependencies": {
"@types/node": "^20.8.8",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.11.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/ord-connect/src/SampleApp.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import "./style.css";

import { useCallback, useState } from "react";

import { useBalance } from "./hooks/useBalance";
import { useSend } from "./hooks/useSend";
import { useSignMessage } from "./hooks/useSignMessage";
import { OrdConnectKit, useSign } from "./index";
import {
Network,
OrdConnectProvider,
useOrdContext,
} from "./providers/OrdContext";
import { OrdConnectKit, useSign } from "./index";

import "./style.css";

function TestControls() {
const [send, sendError, isSending] = useSend();
Expand Down
5 changes: 3 additions & 2 deletions packages/ord-connect/src/components/OrdConnectKit.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import "./style.css";

import { useOrdContext } from "../providers/OrdContext";

import { PostConnectButton } from "./PostConnectButton";
import { PreConnectButton } from "./PreConnectButton";
import { SelectWalletModal } from "./SelectWalletModal";

import "./style.css";

export interface OrdConnectKitProp {
customStyle?: string;
onViewWallet?: () => void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Menu, Transition } from "@headlessui/react";
import Avatar from "boring-avatars";
import { Fragment } from "react";
import Avatar from "boring-avatars";
import { Menu, Transition } from "@headlessui/react";

import ChevronDownIcon from "../../assets/chevron-down.svg";
import LogoutIcon from "../../assets/logout.svg";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { Fragment, useCallback, useEffect, useState } from "react";
import { Dialog, Transition } from "@headlessui/react";
import {
AddressFormat,
BrowserWalletNotInstalledError,
} from "@ordzaar/ordit-sdk";
import { getAddresses as getUnisatAddresses } from "@ordzaar/ordit-sdk/unisat";
import { getAddresses as getXverseAddresses } from "@ordzaar/ordit-sdk/xverse";
import { Fragment, useCallback, useEffect, useState } from "react";

import CloseModalIcon from "../../assets/close-modal.svg";
import UnisatWalletIcon from "../../assets/unisat-wallet.svg";
import XverseWalletIcon from "../../assets/xverse-wallet.svg";
import { useOrdContext, Wallet } from "../../providers/OrdContext";
import { isMobileDevice } from "../../utils/mobile-detector.ts";

import { WalletButton } from "./WalletButton";

interface SelectWalletModalProp {
Expand Down
2 changes: 1 addition & 1 deletion packages/ord-connect/src/hooks/useBalance.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useState } from "react";
import {
ADDRESS_FORMAT_TO_TYPE,
getAddressesFromPublicKey,
JsonRpcDatasource,
} from "@ordzaar/ordit-sdk";
import { useState } from "react";

import { useOrdContext } from "../providers/OrdContext";

Expand Down
2 changes: 1 addition & 1 deletion packages/ord-connect/src/hooks/useSend.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { JsonRpcDatasource, PSBTBuilder } from "@ordzaar/ordit-sdk";
import { useState } from "react";
import { JsonRpcDatasource, PSBTBuilder } from "@ordzaar/ordit-sdk";

import signPsbt from "../lib/signPsbt";
import { useOrdContext } from "../providers/OrdContext";
Expand Down
2 changes: 1 addition & 1 deletion packages/ord-connect/src/hooks/useSign.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Psbt } from "bitcoinjs-lib";
import { useState } from "react";
import { Psbt } from "bitcoinjs-lib";

import signPsbt, {
SerializedPsbt,
Expand Down
2 changes: 1 addition & 1 deletion packages/ord-connect/src/providers/OrdContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AddressFormat } from "@ordzaar/ordit-sdk";
import {
createContext,
PropsWithChildren,
Expand All @@ -7,6 +6,7 @@ import {
useMemo,
useState,
} from "react";
import { AddressFormat } from "@ordzaar/ordit-sdk";

export enum Network {

Check warning on line 11 in packages/ord-connect/src/providers/OrdContext.tsx

View workflow job for this annotation

GitHub Actions / Build (Apps & Packages)

Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components

Check warning on line 11 in packages/ord-connect/src/providers/OrdContext.tsx

View workflow job for this annotation

GitHub Actions / NPM

Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
MAINNET = "mainnet",
Expand Down
Loading

0 comments on commit 31b96e7

Please sign in to comment.