@trustless-work/blocks 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
@@ -1810,6 +1810,7 @@ if (args[0] === "init") {
1810
1810
 
1811
1811
  --- Dashboard ---
1812
1812
  trustless-work add dashboard
1813
+ trustless-work add dashboard/dashboard-01
1813
1814
 
1814
1815
  --- Indicators ---
1815
1816
  trustless-work add escrows/indicators/balance-progress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustless-work/blocks",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "author": "Trustless Work",
5
5
  "keywords": [
6
6
  "react",
@@ -10,7 +10,7 @@ import {
10
10
  } from "__UI_BASE__/card";
11
11
  import { Separator } from "__UI_BASE__/separator";
12
12
  import { useDashboard } from "./useDashboard";
13
- import { formatCurrency } from "../helpers/format.helper";
13
+ import { formatCurrency } from "../../helpers/format.helper";
14
14
  import { Activity, Layers3, PiggyBank } from "lucide-react";
15
15
  import {
16
16
  AreaChart,
@@ -50,7 +50,7 @@ const chartConfigArea: ChartConfig = {
50
50
  },
51
51
  };
52
52
 
53
- export function Dashboard() {
53
+ export const Dashboard01 = () => {
54
54
  const {
55
55
  isLoading,
56
56
  totalEscrows,
@@ -265,4 +265,4 @@ export function Dashboard() {
265
265
  </div>
266
266
  </div>
267
267
  );
268
- }
268
+ };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import React from "react";
4
- import { useWalletContext } from "../wallet-kit/WalletProvider";
5
- import { useEscrowsBySignerQuery } from "../tanstack/useEscrowsBySignerQuery";
4
+ import { useWalletContext } from "../../wallet-kit/WalletProvider";
5
+ import { useEscrowsBySignerQuery } from "../../tanstack/useEscrowsBySignerQuery";
6
6
  import type { GetEscrowsFromIndexerResponse as Escrow } from "@trustless-work/escrow/types";
7
7
 
8
8
  type AmountsByDatePoint = { date: string; amount: number };