Skip to content

Commit

Permalink
Merge pull request #716 from haqq-network/dev
Browse files Browse the repository at this point in the history
release
  • Loading branch information
olegshilov authored Mar 4, 2024
2 parents 3927fa5 + e4579c4 commit 03ac9de
Show file tree
Hide file tree
Showing 23 changed files with 570 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview-vercel-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
Production:
Preview:
runs-on:
- ubuntu
- self-hosted
Expand Down
1 change: 1 addition & 0 deletions apps/faucet/src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions apps/vesting/src/hooks/use-indexer-balances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ function mapBalances(

export function useIndexerBalances() {
const getBalances = useCallback(async (address: string) => {
console.log('getBalances', {
indexerEndpoint: environment.indexerEndpoint,
});
if (!environment.indexerEndpoint || environment.indexerEndpoint === '') {
console.warn('no indexer endpoint');
return undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ export function VoteActions({

const handleVote = useCallback(
async (option: number) => {
console.log('handleVote', { option });
try {
const votePromise = vote(proposalId, option);
await toast.promise(votePromise, {
Expand Down
1 change: 0 additions & 1 deletion libs/shared/src/hooks/liquidvesting/liquidvesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export function createTxMsgLiquidate(
params.denom,
);

console.log({ protoMessage });
const tx = createTransaction(
protoMessage,
memo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ export function useLiquidVestingActions() {
extension,
);

console.log({
extension,
rawTx,
});

return rawTx;
} else {
throw new Error('No haqqChain');
Expand Down
17 changes: 17 additions & 0 deletions libs/shared/src/hooks/use-debounce/use-debounce.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { useEffect, useState } from 'react';

export function useDebounce<T>(value: T, delay: number): T {
const [debouncedValue, setDebouncedValue] = useState<T>(value);

useEffect(() => {
const handler = setTimeout(() => {
setDebouncedValue(value);
}, delay);

return () => {
clearTimeout(handler);
};
}, [value, delay]);

return debouncedValue;
}
Loading

1 comment on commit 03ac9de

@vercel
Copy link

@vercel vercel bot commented on 03ac9de Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.