Fix warnings "You need to pass in an i18next instance using i18nextReactModule"
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { withI18n } from '~/lib/i18n/with-i18n';
|
||||
|
||||
import { loadCurrentUserAccount } from '../../_lib/server/load-user-account';
|
||||
import AccountPreferencesForm from '../_components/account-preferences-form';
|
||||
import SettingsSectionHeader from '../_components/settings-section-header';
|
||||
|
||||
export default async function PreferencesPage() {
|
||||
async function PreferencesPage() {
|
||||
const { account } = await loadCurrentUserAccount();
|
||||
|
||||
return (
|
||||
@@ -17,3 +19,5 @@ export default async function PreferencesPage() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default withI18n(PreferencesPage);
|
||||
|
||||
Reference in New Issue
Block a user