diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index e43d2fa..c03c6f8 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -1,7 +1,7 @@ 'use client' import { useState, useMemo } from 'react' -import { useTheme } from 'next-themes' +import { useTheme } from '@ciphera-net/ui' import { AreaChart, Area, diff --git a/components/dashboard/WorldMap.tsx b/components/dashboard/WorldMap.tsx index c076eea..9172b10 100644 --- a/components/dashboard/WorldMap.tsx +++ b/components/dashboard/WorldMap.tsx @@ -4,7 +4,7 @@ import React, { memo, useMemo, useState } from 'react' import { ComposableMap, Geographies, Geography } from 'react-simple-maps' import countries from 'i18n-iso-countries' import enLocale from 'i18n-iso-countries/langs/en.json' -import { useTheme } from 'next-themes' +import { useTheme } from '@ciphera-net/ui' countries.registerLocale(enLocale) diff --git a/package-lock.json b/package-lock.json index ed1e9ff..0e0fc6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "pulse-frontend", "version": "0.1.0", "dependencies": { - "@ciphera-net/ui": "^0.0.23", + "@ciphera-net/ui": "^0.0.26", "axios": "^1.13.2", "country-flag-icons": "^1.6.4", "d3-scale": "^4.0.2", @@ -16,7 +16,6 @@ "i18n-iso-countries": "^7.14.0", "iso-3166-2": "^1.0.0", "next": "^16.1.1", - "next-themes": "^0.4.6", "react": "^19.2.3", "react-dom": "^19.2.3", "react-icons": "^5.5.0", @@ -267,9 +266,9 @@ } }, "node_modules/@ciphera-net/ui": { - "version": "0.0.23", - "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.23/ee73e5ad39cc4ed8e9eaa1e648fd23feec19c578", - "integrity": "sha512-ZDIPfZ5SmewduqoskjUIitgr18nn0l9fGjIUW/eKVmL7SENAk/ehi6kusKtQiC9bY7Qc/BphuR5agsW0gDrb3w==", + "version": "0.0.26", + "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.26/3ddb39b6659b556033f14142b4bfd7953f868f50", + "integrity": "sha512-uu834RCQJssCJPkG0L1RSwYlyBwGnwEwnON/2lVdcFtHjJwX4214ib3VoHlCVotc9JX2WqPJ8TGPNtdxg3GkCg==", "dependencies": { "@radix-ui/react-icons": "^1.3.0", "clsx": "^2.1.0", @@ -278,7 +277,6 @@ "tailwind-merge": "^2.2.0" }, "peerDependencies": { - "next-themes": "^0.4.0", "react": ">=18", "react-dom": ">=18" } @@ -4663,15 +4661,6 @@ } } }, - "node_modules/next-themes": { - "version": "0.4.6", - "license": "MIT", - "peer": true, - "peerDependencies": { - "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", - "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" - } - }, "node_modules/next/node_modules/postcss": { "version": "8.4.31", "funding": [ diff --git a/package.json b/package.json index 4341723..8178b99 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@ciphera-net/ui": "^0.0.23", + "@ciphera-net/ui": "^0.0.26", "axios": "^1.13.2", "country-flag-icons": "^1.6.4", "d3-scale": "^4.0.2", @@ -18,7 +18,6 @@ "i18n-iso-countries": "^7.14.0", "iso-3166-2": "^1.0.0", "next": "^16.1.1", - "next-themes": "^0.4.6", "react": "^19.2.3", "react-dom": "^19.2.3", "react-icons": "^5.5.0",