feat: fetch data from api

This commit is contained in:
scarqin
2024-12-24 13:51:08 +08:00
parent 08f29b7067
commit a1ae7ca119
2 changed files with 12 additions and 264 deletions
File diff suppressed because one or more lines are too long
@@ -41,7 +41,7 @@ export const KeyStatusNode: React.FC<{ data: KeyStatusNodeData }> = ({ data }) =
}}
className={`
rounded-md flex-shrink-0
${key.status === 'enabled' || key.status === 'normal' ? 'bg-green-500' : 'bg-red-500'}
${key.status === 'normal' ? 'bg-green-500' : 'bg-red-500'}
transition-all duration-200 hover:opacity-80
`}
/>