Skip to content

Commit e409355

Browse files
committed
client/modules/Legal/pages/TermsOfUse: update to named export, no types necessary
1 parent 702a57e commit e409355

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import React from 'react';
22
import { useTranslation } from 'react-i18next';
3-
import Legal from './Legal';
3+
import { Legal } from './Legal';
44

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

88
return <Legal policyFile="terms-of-use.md" title={t('Legal.TermsOfUse')} />;
99
}
10-
11-
export default TermsOfUse;

client/routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import FullView from './modules/IDE/pages/FullView';
99
import { About } from './modules/About/pages/About';
1010
import { CodeOfConduct } from './modules/Legal/pages/CodeOfConduct';
1111
import { PrivacyPolicy } from './modules/Legal/pages/PrivacyPolicy';
12-
import TermsOfUse from './modules/Legal/pages/TermsOfUse';
12+
import { TermsOfUse } from './modules/Legal/pages/TermsOfUse';
1313
import LoginView from './modules/User/pages/LoginView';
1414
import SignupView from './modules/User/pages/SignupView';
1515
import ResetPasswordView from './modules/User/pages/ResetPasswordView';

0 commit comments

Comments
 (0)