@@ -11,7 +11,7 @@ import {
1111} from '@ant-design/icons' ;
1212import useGenericSettings from '@app/hooks/useGenericSettings' ;
1313import { SettingsGroupType , XNostrNitterInstance , XNostrNitterSettings , XNostrIntervalSettings } from '@app/types/settings.types' ;
14- import type { XNostrSettings } from '@app/types/settings.types' ;
14+ import type { XNostrSettings as XNostrSettingsType } from '@app/types/settings.types' ;
1515import BaseSettingsForm from './BaseSettingsForm' ;
1616import styled from 'styled-components' ;
1717
@@ -25,7 +25,7 @@ const NitterInstanceContainer = styled.div`
2525 background-color: #fafafa;
2626` ;
2727
28- const XNostrSettings : React . FC = ( ) => {
28+ const XNostrSettingsComponent : React . FC = ( ) => {
2929 const {
3030 settings,
3131 loading,
@@ -72,7 +72,7 @@ const XNostrSettings: React.FC = () => {
7272 // This function is just for the form's onValuesChange callback
7373
7474 // For simple fields, we can update them directly
75- const simpleChanges : Partial < XNostrSettings > = { } ;
75+ const simpleChanges : Partial < XNostrSettingsType > = { } ;
7676
7777 // Only include simple fields (not nested objects)
7878 if ( 'xnostr_enabled' in changedValues ) {
@@ -545,4 +545,6 @@ const XNostrSettings: React.FC = () => {
545545 ) ;
546546} ;
547547
548- export default XNostrSettings ;
548+ // Export the component as a named export and as the default export
549+ export { XNostrSettingsComponent as XNostrSettings } ;
550+ export default XNostrSettingsComponent ;
0 commit comments