mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 23:21:04 +08:00
Feat: Admin UI whitelist management and role management (#10910)
### What problem does this PR solve? Add whitelist management and role management in Admin UI ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -3,7 +3,7 @@ import { IS_ENTERPRISE } from '../utils';
|
||||
export default function EnterpriseFeature({
|
||||
children,
|
||||
}: {
|
||||
children: () => React.ReactNode;
|
||||
children: React.ReactNode | (() => React.ReactNode);
|
||||
}) {
|
||||
return IS_ENTERPRISE
|
||||
? typeof children === 'function'
|
||||
|
||||
@@ -15,7 +15,7 @@ const ThemeSwitch = forwardRef<
|
||||
return (
|
||||
<Root
|
||||
ref={ref}
|
||||
className={cn('relative rounded-full')}
|
||||
className={cn('relative rounded-full', className)}
|
||||
{...props}
|
||||
checked={isDark}
|
||||
onCheckedChange={(value) =>
|
||||
|
||||
Reference in New Issue
Block a user