chore: upgrade @ciphera-net/ui to v0.0.20 and refactor icon imports in ContentStats and Locations components
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
import { useState } from 'react'
|
||||
import { formatNumber } from '@/lib/utils/format'
|
||||
import { TopPage } from '@/lib/api/stats'
|
||||
import { Modal } from '@ciphera-net/ui'
|
||||
import { FiExternalLink } from 'react-icons/fi'
|
||||
import { Modal, ArrowUpRightIcon } from '@ciphera-net/ui'
|
||||
|
||||
interface ContentStatsProps {
|
||||
topPages: TopPage[]
|
||||
@@ -107,7 +106,7 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain,
|
||||
className="hover:underline flex items-center"
|
||||
>
|
||||
{page.path}
|
||||
<FiExternalLink className="w-3 h-3 ml-2 text-neutral-400 opacity-0 group-hover:opacity-100 transition-opacity" />
|
||||
<ArrowUpRightIcon className="w-3 h-3 ml-2 text-neutral-400 opacity-0 group-hover:opacity-100 transition-opacity" />
|
||||
</a>
|
||||
</div>
|
||||
<div className="text-sm font-semibold text-neutral-600 dark:text-neutral-400 ml-4">
|
||||
|
||||
@@ -6,9 +6,9 @@ import * as Flags from 'country-flag-icons/react/3x2'
|
||||
// @ts-ignore
|
||||
import iso3166 from 'iso-3166-2'
|
||||
import WorldMap from './WorldMap'
|
||||
import { Modal } from '@ciphera-net/ui'
|
||||
import { Modal, GlobeIcon } from '@ciphera-net/ui'
|
||||
import { SiTorproject } from 'react-icons/si'
|
||||
import { FaUserSecret, FaSatellite, FaGlobe } from 'react-icons/fa'
|
||||
import { FaUserSecret, FaSatellite } from 'react-icons/fa'
|
||||
|
||||
interface LocationProps {
|
||||
countries: Array<{ country: string; pageviews: number }>
|
||||
@@ -38,7 +38,7 @@ export default function Locations({ countries, cities, regions, geoDataLevel = '
|
||||
case 'O1':
|
||||
case 'EU':
|
||||
case 'AP':
|
||||
return <FaGlobe className="w-5 h-5 text-neutral-500 dark:text-neutral-400" />
|
||||
return <GlobeIcon className="w-5 h-5 text-neutral-500 dark:text-neutral-400" />
|
||||
}
|
||||
|
||||
const FlagComponent = (Flags as any)[countryCode]
|
||||
|
||||
Reference in New Issue
Block a user