+
{Array.isArray(children)
? children
- .filter(
- (child) => child != undefined && child !== '' && child !== false
- )
- .map((child, i, arr) => (
- <>
- {child}
-
- >
- ))
+ .filter(
+ (child) => child != undefined && child !== '' && child !== false
+ )
+ .map((child, i, arr) => (
+ <>
+ {child}
+
+ >
+ ))
: children}
);
diff --git a/app/assets/javascripts/preferences/components/PreferencesPane.tsx b/app/assets/javascripts/preferences/components/PreferencesPane.tsx
index 257ce4f73b4..f1a13688414 100644
--- a/app/assets/javascripts/preferences/components/PreferencesPane.tsx
+++ b/app/assets/javascripts/preferences/components/PreferencesPane.tsx
@@ -7,12 +7,6 @@ export const PreferencesPane: FunctionComponent = ({ children }) => (
{children != undefined && Array.isArray(children)
? children
.filter((child) => child != undefined)
- .map((child) => (
- <>
- {child}
-
- >
- ))
: children}
diff --git a/app/assets/javascripts/preferences/panes/General.tsx b/app/assets/javascripts/preferences/panes/General.tsx
new file mode 100644
index 00000000000..2598b7a98ee
--- /dev/null
+++ b/app/assets/javascripts/preferences/panes/General.tsx
@@ -0,0 +1,16 @@
+import { WebApplication } from '@/ui_models/application';
+import { AppState } from '@/ui_models/app_state';
+import { FunctionComponent } from 'preact';
+import { PreferencesPane } from '../components';
+import { ErrorReporting } from './general-segments';
+
+interface GeneralProps {
+ appState: AppState;
+ application: WebApplication;
+}
+
+export const General: FunctionComponent