Skip to content

Commit

Permalink
fix: timestamp error (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 authored Oct 17, 2024
1 parent e268583 commit 111eb34
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 119 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"vite-plugin-dts": "^3.8.2"
},
"dependencies": {
"@covalenthq/client-sdk": "^2.1.1",
"@covalenthq/client-sdk": "^2.1.2",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Atoms/Timestamp/Timestamp.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { timestampParser } from "@/utils/functions";
import { type TimestampProps } from "@/utils/types/atoms.types";
import { timestampParser } from "@covalenthq/client-sdk";
import { ClockIcon } from "@radix-ui/react-icons";
import { useCallback, useEffect, useState } from "react";

Expand Down
11 changes: 6 additions & 5 deletions src/components/Molecules/Block/BlocksList/BlocksList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import {
DEFAULT_ERROR_MESSAGE,
FALLBACK_ERROR,
} from "@/utils/constants/shared.constants";
import { actionableWrapper, timestampParser } from "@/utils/functions";
import { actionableWrapper } from "@/utils/functions";
import { None, Some, type Option } from "@/utils/option";
import { useGoldRush } from "@/utils/store";
import { type BlocksListProps } from "@/utils/types/molecules.types";
import type {
Block,
Pagination,
GoldRushResponse,
import {
type Block,
type Pagination,
type GoldRushResponse,
timestampParser,
} from "@covalenthq/client-sdk";
import { type ColumnDef } from "@tanstack/react-table";
import { useCallback, useEffect, useState } from "react";
Expand Down
8 changes: 6 additions & 2 deletions src/components/Molecules/Block/LatestBlocks/LatestBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import {
DEFAULT_ERROR_MESSAGE,
FALLBACK_ERROR,
} from "@/utils/constants/shared.constants";
import { actionableWrapper, timestampParser } from "@/utils/functions";
import { actionableWrapper } from "@/utils/functions";
import { None, Some, type Option } from "@/utils/option";
import { useGoldRush } from "@/utils/store";
import { type LatestBlocksProps } from "@/utils/types/molecules.types";
import type { GoldRushResponse, Block } from "@covalenthq/client-sdk";
import {
type GoldRushResponse,
type Block,
timestampParser,
} from "@covalenthq/client-sdk";
import { useEffect, useState } from "react";

export const LatestBlocks: React.FC<LatestBlocksProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import {
DEFAULT_ERROR_MESSAGE,
FALLBACK_ERROR,
} from "@/utils/constants/shared.constants";
import { actionableWrapper, timestampParser } from "@/utils/functions";
import { actionableWrapper } from "@/utils/functions";
import { None, Some, type Option } from "@/utils/option";
import { useGoldRush } from "@/utils/store";
import { type TransactionsListProps } from "@/utils/types/molecules.types";
import {
calculatePrettyBalance,
type Transaction,
type GoldRushResponse,
timestampParser,
} from "@covalenthq/client-sdk";
import { type ColumnDef } from "@tanstack/react-table";
import { useEffect, useState } from "react";
Expand Down
1 change: 0 additions & 1 deletion src/utils/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ export { primaryShades } from "./primary-shades";
export { storyAction } from "./story-action";
export { stringToColor } from "./string-to-color";
export { themedSvg } from "./themed-svg";
export { timestampParser } from "./timestamp-parser";
export { truncate } from "./truncate";
104 changes: 0 additions & 104 deletions src/utils/functions/timestamp-parser.ts

This file was deleted.

0 comments on commit 111eb34

Please sign in to comment.