summaryrefslogtreecommitdiff
path: root/app/components/WhoisChart.tsx
diff options
context:
space:
mode:
authorElizabeth Hunt <lizhunt@amazon.com>2025-01-17 12:03:39 -0800
committerElizabeth Hunt <lizhunt@amazon.com>2025-01-17 12:05:21 -0800
commit582870c12d9e1ec5b84882bee4db8dcd56b261a7 (patch)
tree42748ca1edc38571ecd11b849c5e72581aa68344 /app/components/WhoisChart.tsx
parent2a08e687f6f33ac2e1526da04dfd982e11b50d36 (diff)
downloadpenguin-new-tab-main.tar.gz
penguin-new-tab-main.zip
update quicklinks and ticksHEADmain
Diffstat (limited to 'app/components/WhoisChart.tsx')
-rw-r--r--app/components/WhoisChart.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/WhoisChart.tsx b/app/components/WhoisChart.tsx
index a373e98..74bde6d 100644
--- a/app/components/WhoisChart.tsx
+++ b/app/components/WhoisChart.tsx
@@ -72,14 +72,14 @@ export default function UpdateChart() {
dataKey="time"
type="number"
domain={["dataMin", "dataMax"]}
- tickFormatter={(tick) => new Date(tick).toLocaleTimeString()}
+ tickFormatter={(tick) => ((d) => `${d.toLocaleDateString()} ${d.getHours().toString().padStart(2, '0')}:${d.getMinutes().toString().padStart(2, '0')}`)(new Date(tick))}
stroke="rgba(var(--foreground), 0.6)"
/>
<YAxis
stroke="rgba(var(--foreground), 0.6)"
tickFormatter={(tick) => (tick === 0 ? "" : `${tick} hrs`)}
/>
- {uniqueNames.map((uniqueName, index) => (
+ {uniqueNames.map((uniqueName, _index) => (
<Line
key={uniqueName}
type="linear"