Skip to content

Commit a6fc06b

Browse files
committed
client/modules/Legal/pages/CodeOfConduct: update to named export, no types needed
1 parent b514e13 commit a6fc06b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

client/modules/Legal/pages/CodeOfConduct.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import React from 'react';
22
import { useTranslation } from 'react-i18next';
33
import Legal from './Legal';
44

5-
function CodeOfConduct() {
5+
export function CodeOfConduct() {
66
const { t } = useTranslation();
77

88
return (
99
<Legal policyFile="code-of-conduct.md" title={t('Legal.CodeOfConduct')} />
1010
);
1111
}
12-
13-
export default CodeOfConduct;

client/routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import App from './modules/App/App';
77
import IDEView from './modules/IDE/pages/IDEView';
88
import FullView from './modules/IDE/pages/FullView';
99
import { About } from './modules/About/pages/About';
10-
import CodeOfConduct from './modules/Legal/pages/CodeOfConduct';
10+
import { CodeOfConduct } from './modules/Legal/pages/CodeOfConduct';
1111
import PrivacyPolicy from './modules/Legal/pages/PrivacyPolicy';
1212
import TermsOfUse from './modules/Legal/pages/TermsOfUse';
1313
import LoginView from './modules/User/pages/LoginView';

0 commit comments

Comments
 (0)