fix(nixserver): widen SectionCard icon prop to accept Lucide components

Lucide icons type size as string | number but SectionCardProps declared
size as number only, causing TS2322 and failing the nixserver build.
This commit is contained in:
NixReaper
2026-04-12 04:51:10 -05:00
parent 17b0becc82
commit f9352617b0
4 changed files with 10 additions and 3 deletions
+7
View File
@@ -6,6 +6,13 @@ Pre-1.0 versions treat MINOR as feature releases and PATCH as bug fixes.
--- ---
## [0.6.4] — 2026-04-12
### Bug Fixes
- **`SectionCard.tsx` TypeScript build error** — `icon` prop typed as `ComponentType<{ size?: number }>` but Lucide icons declare `size?: string | number`. Widened the prop type to `size?: number | string` to match Lucide's `LucideProps`.
---
## [0.6.3] — 2026-04-12 ## [0.6.3] — 2026-04-12
### Bug Fixes ### Bug Fixes
+1 -1
View File
@@ -5,7 +5,7 @@ interface SectionCardProps {
label: string label: string
description?: string description?: string
to: string to: string
icon?: ComponentType<{ size?: number; className?: string }> icon?: ComponentType<{ size?: number | string; className?: string }>
comingSoon?: boolean comingSoon?: boolean
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "nixpanel-server", "name": "nixpanel-server",
"version": "0.6.3", "version": "0.6.4",
"private": true, "private": true,
"workspaces": [ "workspaces": [
"server", "server",
+1 -1
View File
@@ -73,7 +73,7 @@ export async function buildApp() {
fastify.get('/api/health', async () => ({ fastify.get('/api/health', async () => ({
status: 'ok', status: 'ok',
version: '0.6.3', version: '0.6.4',
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
})) }))