Skip to content

Commit 275334e

Browse files
justin808claude
andcommitted
Fix ESLint import/prefer-default-export by using only default export
Changed translations.js to only export default (no named export) and updated all imports to use default import instead of named import. Files changed: - client/app/libs/i18n/translations.js: Removed named export - client/app/bundles/comments/containers/RouterCommentsContainer.jsx: Updated import - client/app/bundles/comments/containers/NonRouterCommentsContainer.jsx: Updated import - client/app/bundles/comments/components/SimpleCommentScreen/ror_components/SimpleCommentScreen.jsx: Updated import 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4f3af19 commit 275334e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

client/app/bundles/comments/components/SimpleCommentScreen/ror_components/SimpleCommentScreen.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IntlProvider, injectIntl } from 'react-intl';
88
import BaseComponent from 'libs/components/BaseComponent';
99
import SelectLanguage from 'libs/i18n/selectLanguage';
1010
import { defaultMessages, defaultLocale } from 'libs/i18n/default';
11-
import { translations } from 'libs/i18n/translations';
11+
import translations from 'libs/i18n/translations';
1212

1313
import CommentForm from '../../CommentBox/CommentForm/CommentForm';
1414
import CommentList from '../../CommentBox/CommentList/CommentList';

client/app/bundles/comments/containers/NonRouterCommentsContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { bindActionCreators } from 'redux';
66
import Intl from 'intl';
77
import { IntlProvider } from 'react-intl';
88
import BaseComponent from '../../../libs/components/BaseComponent.jsx';
9-
import { translations } from '../../../libs/i18n/translations';
9+
import translations from '../../../libs/i18n/translations';
1010
import { defaultLocale } from '../../../libs/i18n/default';
1111

1212
import CommentScreen from '../components/CommentScreen/CommentScreen.jsx';

client/app/bundles/comments/containers/RouterCommentsContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { bindActionCreators } from 'redux';
66
import { IntlProvider } from 'react-intl';
77
import Intl from 'intl';
88
import { defaultLocale } from '../../../libs/i18n/default';
9-
import { translations } from '../../../libs/i18n/translations';
9+
import translations from '../../../libs/i18n/translations';
1010

1111
import CommentScreen from '../components/CommentScreen/CommentScreen.jsx';
1212
import * as commentsActionCreators from '../actions/commentsActionCreators';

client/app/libs/i18n/translations.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ const translations = {
3636
},
3737
};
3838

39-
export { translations };
4039
export default translations;

0 commit comments

Comments
 (0)