Skip to content

Commit 500cb96

Browse files
derektrimmDerek Trimm
andauthored
refactor(web): move limitsFormat into @t3tools/shared (#7420)
Co-authored-by: Derek Trimm <[email protected]>
1 parent 54d006d commit 500cb96

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/web/src/components/usage/AccountLimits.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* @module AccountLimits
1212
*/
1313
import type { AccountLimitsSnapshot, AccountLimitsWindow } from "@t3tools/contracts";
14+
import { formatAgo, formatResetAt } from "@t3tools/shared/limitsFormat";
1415
import { useEffect, useState } from "react";
1516

1617
import { cn } from "../../lib/utils";
1718
import { useAccountLimits } from "../../state/accountLimits";
18-
import { formatAgo, formatResetAt } from "../../usage/limitsFormat";
1919
import { PROVIDER_COLOR, PROVIDER_LABEL, PROVIDER_MARK, PROVIDER_ORDER } from "./usageProviders";
2020

2121
/** Age past which a snapshot stops being "current" and earns a caption. */

‎packages/shared/package.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@
199199
"types": "./src/httpReadiness.ts",
200200
"import": "./src/httpReadiness.ts"
201201
},
202+
"./limitsFormat": {
203+
"types": "./src/limitsFormat.ts",
204+
"import": "./src/limitsFormat.ts"
205+
},
202206
"./devHome": {
203207
"types": "./src/devHome.ts",
204208
"import": "./src/devHome.ts"

0 commit comments

Comments
 (0)