diff --git a/web/libs/editor/src/components/Settings/Settings.jsx b/web/libs/editor/src/components/Settings/Settings.jsx index 9c42a42af121..870972031c0c 100644 --- a/web/libs/editor/src/components/Settings/Settings.jsx +++ b/web/libs/editor/src/components/Settings/Settings.jsx @@ -5,7 +5,7 @@ import { observer } from "mobx-react"; import { Hotkey } from "../../core/Hotkey"; import "./Settings.scss"; -import { Block, Elem } from "../../utils/bem"; +import { cn } from "../../utils/bem"; import { triggerResizeEvent } from "../../utils/utilities"; import EditorSettings from "../../core/settings/editorsettings"; @@ -30,23 +30,23 @@ const HotkeysDescription = () => { key: k, combo: k.split(",").map((keyGroup) => { return ( - +
{keyGroup .trim() .split("+") .map((k) => ( - + {k} - + ))} - +
); }), descr: descr[k], })); return ( - +
{Object.entries(keyNamespaces).map(([ns, data]) => { if (Object.keys(data.descriptions).length === 0) { @@ -59,7 +59,7 @@ const HotkeysDescription = () => { ); })} - +
); }; @@ -82,26 +82,28 @@ if (isFF(FF_DEV_3873)) { } const SettingsTag = ({ children }) => { - return {children}; + return
{children}
; }; const GeneralSettings = observer(({ store }) => { return ( - +
{editorSettingsKeys.map((obj, index) => { return ( - + ); })} - +
); }); const LayoutSettings = observer(({ store }) => { return ( - - +
+
{ @@ -141,15 +143,15 @@ const LayoutSettings = observer(({ store }) => { > Move sidepanel to the bottom - +
- +
Display Labels by default in Results panel - +
- +
{ > Show Annotations panel - +
- +
{ > Show Predictions panel - +
{/* Saved for future use */} - {/* + {/*
{ > Show image in fullsize - */} - +
*/} +
); }); @@ -228,12 +230,14 @@ export default observer(({ store }) => { }, []); return ( - {Object.entries(Settings).map(([key, { name, component }]) => ( @@ -247,6 +251,6 @@ export default observer(({ store }) => { ))} - + ); }); diff --git a/web/libs/editor/src/components/Settings/TagSettings/SettingsRenderer.tsx b/web/libs/editor/src/components/Settings/TagSettings/SettingsRenderer.tsx index 7befd5ae9022..12b9c8bfe344 100644 --- a/web/libs/editor/src/components/Settings/TagSettings/SettingsRenderer.tsx +++ b/web/libs/editor/src/components/Settings/TagSettings/SettingsRenderer.tsx @@ -3,16 +3,16 @@ import { Checkbox } from "@humansignal/ui"; import { observer } from "mobx-react"; import type { FC } from "react"; import type { SettingsProperties, SettingsProperty } from "../../../core/settings/types"; -import { Block, Elem } from "../../../utils/bem"; +import { cn } from "../../../utils/bem"; import { isFF } from "../../../utils/feature-flags"; const SettingsRendererPure: FC<{ store: any; settings: SettingsProperties }> = ({ store, settings }) => { return ( - +
{Object.entries(settings).map(([key, value]) => { return value.ff && !isFF(value.ff) ? null : ; })} - +
); }; @@ -54,7 +54,7 @@ const SettingsField: FC<{ } return ( - +
{value.type === "boolean" ? ( {value.description} ) : ( @@ -63,7 +63,7 @@ const SettingsField: FC<{ )} - +
); });