diff --git a/frontend/src/components/TopRightControls.tsx b/frontend/src/components/TopRightControls.tsx index 0d63e21d..1bbff330 100644 --- a/frontend/src/components/TopRightControls.tsx +++ b/frontend/src/components/TopRightControls.tsx @@ -3,7 +3,6 @@ import { useState, useRef, useEffect, useCallback } from 'react'; import { createPortal } from 'react-dom'; import { - Github, Download, AlertCircle, CheckCircle2, @@ -14,6 +13,7 @@ import { Server, Copy, } from 'lucide-react'; +import GithubIcon from '@/components/icons/GithubIcon'; import { API_BASE } from '@/lib/api'; import { useTranslation } from '@/i18n'; import { controlPlaneFetch } from '@/lib/controlPlane'; @@ -1247,9 +1247,9 @@ export default function TopRightControls({ className={`${btnBase} disabled:opacity-50 disabled:cursor-not-allowed`} > {updateStatus === 'checking' && ( - + )} - {updateStatus === 'idle' && } + {updateStatus === 'idle' && } {updateStatus === 'uptodate' && } {updateStatus === 'error' && } diff --git a/frontend/src/components/icons/GithubIcon.tsx b/frontend/src/components/icons/GithubIcon.tsx new file mode 100644 index 00000000..e8a99290 --- /dev/null +++ b/frontend/src/components/icons/GithubIcon.tsx @@ -0,0 +1,22 @@ +// lucide-react 1.x removed brand icons, including `Github`. This is a drop-in +// replacement with the same `size` / `className` props, drawn from GitHub's +// Octicons "mark-github" (MIT licensed). +interface GithubIconProps { + size?: number; + className?: string; +} + +export default function GithubIcon({ size = 24, className }: GithubIconProps) { + return ( + + ); +}