aboutsummaryrefslogtreecommitdiff
path: root/src/components/PluginSettings/PluginModal.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/PluginSettings/PluginModal.tsx')
-rw-r--r--src/components/PluginSettings/PluginModal.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx
index 970eb52..9a47c32 100644
--- a/src/components/PluginSettings/PluginModal.tsx
+++ b/src/components/PluginSettings/PluginModal.tsx
@@ -30,10 +30,11 @@ import ErrorBoundary from "../ErrorBoundary";
import { Flex } from "../Flex";
import {
SettingBooleanComponent,
+ SettingCustomComponent,
SettingInputComponent,
SettingNumericComponent,
SettingSelectComponent,
- SettingSliderComponent,
+ SettingSliderComponent
} from "./components";
const UserSummaryItem = lazyWebpack(filters.byCode("defaultRenderUser", "showDefaultAvatarsForNullUsers"));
@@ -143,6 +144,10 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
options.push(<SettingSliderComponent key={key} option={setting} {...props} />);
break;
}
+ case OptionType.COMPONENT: {
+ options.push(<SettingCustomComponent key={key} option={setting} {...props} />);
+ break;
+ }
}
}
return <Flex flexDirection="column" style={{ gap: 12 }}>{options}</Flex>;