chore: upgrade @ciphera-net/ui to v0.0.18 and refactor icon imports across components

This commit is contained in:
Usman Baig
2026-01-24 12:50:43 +01:00
parent 1c4ea35296
commit 5857a2ea15
10 changed files with 41 additions and 43 deletions

View File

@@ -14,7 +14,7 @@ import {
} from 'recharts'
import type { TooltipProps } from 'recharts'
import { formatNumber, formatDuration } from '@/lib/utils/format'
import { ArrowTopRightIcon, ArrowBottomRightIcon, DownloadIcon, BarChartIcon } from '@radix-ui/react-icons'
import { ArrowUpRightIcon, ArrowDownRightIcon, DownloadIcon, BarChartIcon } from '@ciphera-net/ui'
import { Button } from '@ciphera-net/ui'
import { Checkbox } from '@ciphera-net/ui'
@@ -319,9 +319,9 @@ export default function Chart({ data, prevData, stats, prevStats, interval }: Ch
: 'text-neutral-500'
}`}>
{(item.invertTrend ? -item.trend : item.trend) > 0 ? (
<ArrowTopRightIcon className="w-3 h-3 mr-0.5" />
<ArrowUpRightIcon className="w-3 h-3 mr-0.5" />
) : (item.invertTrend ? -item.trend : item.trend) < 0 ? (
<ArrowBottomRightIcon className="w-3 h-3 mr-0.5" />
<ArrowDownRightIcon className="w-3 h-3 mr-0.5" />
) : null}
{Math.abs(item.trend)}%
</span>

View File

@@ -2,7 +2,7 @@
import { useState, useEffect } from 'react'
import { motion } from 'framer-motion'
import { ChevronDownIcon } from '@radix-ui/react-icons'
import { ChevronDownIcon } from '@ciphera-net/ui'
import { PerformanceStats as Stats, PerformanceByPageStat, getPerformanceByPage } from '@/lib/api/stats'
import { Select } from '@ciphera-net/ui'