chore: move useFormatTrigger hook out of utisl
This commit is contained in:
parent
7b4c5c0fab
commit
ab06c95468
@ -3,8 +3,8 @@ import {
|
|||||||
getDateTimeFormat,
|
getDateTimeFormat,
|
||||||
isNumeric,
|
isNumeric,
|
||||||
toBigNum,
|
toBigNum,
|
||||||
useFormatTrigger,
|
|
||||||
} from '@vegaprotocol/utils';
|
} from '@vegaprotocol/utils';
|
||||||
|
import { useFormatTrigger } from '@vegaprotocol/react-helpers';
|
||||||
import * as Schema from '@vegaprotocol/types';
|
import * as Schema from '@vegaprotocol/types';
|
||||||
import {
|
import {
|
||||||
ActionsDropdown,
|
ActionsDropdown,
|
||||||
|
@ -15,3 +15,4 @@ export * from './use-previous';
|
|||||||
export * from './use-validate';
|
export * from './use-validate';
|
||||||
export { useScript } from './use-script';
|
export { useScript } from './use-script';
|
||||||
export { useUserAgent } from './use-user-agent';
|
export { useUserAgent } from './use-user-agent';
|
||||||
|
export { useFormatTrigger } from './use-format-trigger';
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import { type StopOrder, StopOrderTriggerDirection } from '@vegaprotocol/types';
|
|
||||||
import { addDecimalsFormatNumber } from './number';
|
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
import { useT } from '../use-t';
|
import { type StopOrder, StopOrderTriggerDirection } from '@vegaprotocol/types';
|
||||||
|
import { addDecimalsFormatNumber } from '@vegaprotocol/utils';
|
||||||
|
|
||||||
|
// TODO: add real useT func
|
||||||
|
const useT = () => (str: string) => str;
|
||||||
|
|
||||||
export const useFormatTrigger = () => {
|
export const useFormatTrigger = () => {
|
||||||
const t = useT();
|
const t = useT();
|
@ -3,5 +3,4 @@ export * from './number';
|
|||||||
export * from './range';
|
export * from './range';
|
||||||
export * from './size';
|
export * from './size';
|
||||||
export * from './strings';
|
export * from './strings';
|
||||||
export * from './trigger';
|
|
||||||
export * from './ether';
|
export * from './ether';
|
||||||
|
@ -40,9 +40,9 @@ import {
|
|||||||
formatNumber,
|
formatNumber,
|
||||||
toBigNum,
|
toBigNum,
|
||||||
truncateByChars,
|
truncateByChars,
|
||||||
useFormatTrigger,
|
|
||||||
HALFMAXGOINT64,
|
HALFMAXGOINT64,
|
||||||
} from '@vegaprotocol/utils';
|
} from '@vegaprotocol/utils';
|
||||||
|
import { useFormatTrigger } from '@vegaprotocol/react-helpers';
|
||||||
import { useAssetsMapProvider } from '@vegaprotocol/assets';
|
import { useAssetsMapProvider } from '@vegaprotocol/assets';
|
||||||
import { useEthWithdrawApprovalsStore } from './use-ethereum-withdraw-approvals-store';
|
import { useEthWithdrawApprovalsStore } from './use-ethereum-withdraw-approvals-store';
|
||||||
import { DApp, EXPLORER_TX, useLinks } from '@vegaprotocol/environment';
|
import { DApp, EXPLORER_TX, useLinks } from '@vegaprotocol/environment';
|
||||||
|
Loading…
Reference in New Issue
Block a user