mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Simplify Load button and remove skill error toast
This commit is contained in:
1 parent
3aee66b333
commit
07b0e1548b
2 files changed
+8
-13
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { AlertCircle, Loader2, Sparkles } from 'lucide-react'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { AlertCircle, Loader2 } from 'lucide-react'
|
||||
import type { SkillFileInfo } from '@opencode-manager/shared'
|
||||
|
||||
interface RepoSkillsListProps {
|
||||
@@ -74,15 +73,13 @@ export function RepoSkillsList({
|
||||
)}
|
||||
</div>
|
||||
{onLoad && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => onLoad(skill)}
|
||||
className="shrink-0"
|
||||
className="shrink-0 text-xs font-medium text-primary hover:text-foreground transition-colors"
|
||||
>
|
||||
<Sparkles className="w-4 h-4" />
|
||||
<span>Load</span>
|
||||
</Button>
|
||||
Load
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user