fix settings ui on canary

This commit is contained in:
Vendicated 2025-12-10 17:03:27 +01:00
parent c8ccf4bfb7
commit e28f86a979
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -56,11 +56,13 @@ interface SettingsLayoutNode {
type: number;
key?: string;
legacySearchKey?: string;
getLegacySearchKey?(): string;
useLabel?(): string;
useTitle?(): string;
buildLayout?(): SettingsLayoutNode[];
icon?(): ReactNode;
render?(): ReactNode;
StronglyDiscouragedCustomComponent?(): ReactNode;
}
interface EntryOptions {
@ -165,7 +167,9 @@ export default definePlugin({
return ({
key,
type: LayoutTypes.SIDEBAR_ITEM,
// FIXME
legacySearchKey: title.toUpperCase(),
getLegacySearchKey: () => title.toUpperCase(),
useTitle: () => title,
icon: () => <Icon width={20} height={20} />,
buildLayout: () => [
@ -178,6 +182,8 @@ export default definePlugin({
key: key + "_pane",
type: LayoutTypes.PANE,
buildLayout: () => [],
// FIXME
StronglyDiscouragedCustomComponent: () => <Component />,
render: () => <Component />,
useTitle: () => panelTitle
}