diff --git a/src/components/InjectedComponents/PageInspector.tsx b/src/components/InjectedComponents/PageInspector.tsx
new file mode 100644
index 00000000000..010427218ef
--- /dev/null
+++ b/src/components/InjectedComponents/PageInspector.tsx
@@ -0,0 +1,20 @@
+import React from 'react'
+import { PluginUI, PluginConfig } from '../../plugins/plugin'
+
+export interface PageInspectorProps {}
+
+export function PageInspector(props: PageInspectorProps) {
+ return (
+ <>
+ {[...PluginUI.values()].map((x) => (
+
+ ))}
+ >
+ )
+}
+
+function PluginPageInspectorForEach({ config }: { config: PluginConfig }) {
+ const F = config.pageInspector
+ if (typeof F === 'function') return
+ return null
+}
diff --git a/src/components/InjectedComponents/PostDummy.tsx b/src/components/InjectedComponents/PostDummy.tsx
index b71ef9413f2..120fa5d7022 100644
--- a/src/components/InjectedComponents/PostDummy.tsx
+++ b/src/components/InjectedComponents/PostDummy.tsx
@@ -2,7 +2,6 @@ import React from 'react'
import { usePostInfoDetails } from '../DataSource/usePostInfo'
import { DefaultTypedMessageRenderer } from './TypedMessageRenderer'
import { PluginUI } from '../../plugins/plugin'
-import { remove } from 'lodash-es'
import { makeTypedMessageCompound, isTypedMessageSuspended } from '../../protocols/typed-message'
export interface PostDummyProps {}
diff --git a/src/plugins/Trader/UI/SettingsDialog.tsx b/src/plugins/Trader/UI/SettingsDialog.tsx
index ec494a6fe16..b83c470ab54 100644
--- a/src/plugins/Trader/UI/SettingsDialog.tsx
+++ b/src/plugins/Trader/UI/SettingsDialog.tsx
@@ -1,4 +1,4 @@
-import React, { useState } from 'react'
+import React from 'react'
import { useI18N } from '../../../utils/i18n-next-ui'
import {
makeStyles,
@@ -16,6 +16,7 @@ import {
DialogActions,
Button,
Divider,
+ MenuProps,
} from '@material-ui/core'
import ShadowRootDialog from '../../../utils/jss/ShadowRootDialog'
import { DialogDismissIconUI } from '../../../components/InjectedComponents/DialogDismissIcon'
@@ -69,16 +70,13 @@ interface SettingsDialogUIProps
onPlatformChange?: (platform: Platform) => void
onClose?: () => void
DialogProps?: Partial
+ MenuProps?: Partial
}
function SettingsDialogUI(props: SettingsDialogUIProps) {
const { t } = useI18N()
const { currency, platform, currencies } = props
const classes = useStylesExtends(useStyles(), props)
-
- console.log('DEBUG: SettingsDialogUI')
- console.log(props)
-
return (
props.onPlatformChange?.(e.target.value as Platform)}
- MenuProps={{ container: props.DialogProps?.container ?? PortalShadowRoot }}>
+ MenuProps={{
+ classes: { paper: classes.menuPaper },
+ container: props.DialogProps?.container ?? PortalShadowRoot,
+ ...props.MenuProps,
+ }}>
{getEnumAsArray(Platform).map(({ key, value }) => (