Skip to content

Commit 24259d1

Browse files
committed
fix: nanofix
1 parent 9a2a7e2 commit 24259d1

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/components/ComponentsProvider/componentsRegistry.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import type React from 'react';
2-
31
import {AsideNavigation} from '../../containers/AsideNavigation/AsideNavigation';
42
import {ErrorBoundaryInner} from '../ErrorBoundary/ErrorBoundary';
53
import {ShardsTable} from '../ShardsTable/ShardsTable';
64
import {StaffCard} from '../User/StaffCard';
75

86
import {AIAssistantButtonPlaceholder, ChatPanelPlaceholder} from './chatPlaceholderTypes';
9-
import type {AIAssistantButtonProps, ChatPanelProps} from './chatPlaceholderTypes';
107
import type {ComponentsRegistryTemplate} from './registry';
118
import {Registry} from './registry';
129

@@ -15,13 +12,8 @@ const componentsRegistryInner = new Registry()
1512
.register('AsideNavigation', AsideNavigation)
1613
.register('ErrorBoundary', ErrorBoundaryInner)
1714
.register('ShardsTable', ShardsTable)
18-
// Placeholder registrations for chat components
19-
// These will be overridden by external implementations
20-
.register(
21-
'AIAssistantButton',
22-
AIAssistantButtonPlaceholder as React.ComponentType<AIAssistantButtonProps>,
23-
)
24-
.register('ChatPanel', ChatPanelPlaceholder as React.ComponentType<ChatPanelProps>);
15+
.register('AIAssistantButton', AIAssistantButtonPlaceholder)
16+
.register('ChatPanel', ChatPanelPlaceholder);
2517

2618
export type ComponentsRegistry = ComponentsRegistryTemplate<typeof componentsRegistryInner>;
2719

0 commit comments

Comments
 (0)