Browse Source

Rename `Hooks.tsx` file to what it contains

1. This does not contain JSX syntax so no need for ts_x_.
2. It default-exports a function, implying that we are not going
to export anything else, thus we can rename it to the hook that we
are exporting.
debug-collab-settlement
Thomas Eizinger 3 years ago
parent
commit
52f5106053
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 2
      taker-frontend/src/App.tsx
  2. 0
      taker-frontend/src/useLatestEvent.ts

2
taker-frontend/src/App.tsx

@ -37,7 +37,7 @@ import {
WithdrawRequest,
} from "./components/Types";
import { Wallet, WalletInfoBar } from "./components/Wallet";
import useLatestEvent from "./Hooks";
import useLatestEvent from "./useLatestEvent";
async function getMargin(payload: MarginRequestPayload): Promise<MarginResponse> {
let res = await fetch(`/api/calculate/margin`, { method: "POST", body: JSON.stringify(payload) });

0
taker-frontend/src/Hooks.tsx → taker-frontend/src/useLatestEvent.ts

Loading…
Cancel
Save