mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-02 20:58:56 -05:00
feat: season/episode list on series details (#2967)
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import Link from 'next/link';
|
||||
|
||||
interface BadgeProps {
|
||||
badgeType?: 'default' | 'primary' | 'danger' | 'warning' | 'success';
|
||||
badgeType?:
|
||||
| 'default'
|
||||
| 'primary'
|
||||
| 'danger'
|
||||
| 'warning'
|
||||
| 'success'
|
||||
| 'dark'
|
||||
| 'light';
|
||||
className?: string;
|
||||
href?: string;
|
||||
children: React.ReactNode;
|
||||
@@ -42,6 +49,18 @@ const Badge = ({
|
||||
badgeStyle.push('hover:bg-green-400');
|
||||
}
|
||||
break;
|
||||
case 'dark':
|
||||
badgeStyle.push('bg-gray-900 !text-gray-400');
|
||||
if (href) {
|
||||
badgeStyle.push('hover:bg-gray-800');
|
||||
}
|
||||
break;
|
||||
case 'light':
|
||||
badgeStyle.push('bg-gray-700 !text-gray-300');
|
||||
if (href) {
|
||||
badgeStyle.push('hover:bg-gray-600');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
badgeStyle.push('bg-indigo-500 !text-indigo-100');
|
||||
if (href) {
|
||||
|
||||
Reference in New Issue
Block a user