Skip to content

Commit 0444b7e

Browse files
committed
Fix XNostrSettings export to resolve import error
1 parent bc6b6b5 commit 0444b7e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/components/settings/XNostrSettings.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '@ant-design/icons';
1212
import useGenericSettings from '@app/hooks/useGenericSettings';
1313
import { 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';
1515
import BaseSettingsForm from './BaseSettingsForm';
1616
import 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

Comments
 (0)