diff --git a/src/dashboardWebView/components/DataView/DataForm.tsx b/src/dashboardWebView/components/DataView/DataForm.tsx index f3bdc721..a3ab5cab 100644 --- a/src/dashboardWebView/components/DataView/DataForm.tsx +++ b/src/dashboardWebView/components/DataView/DataForm.tsx @@ -5,7 +5,6 @@ import { JSONSchemaBridge } from 'uniforms-bridge-json-schema'; import { AutoFields, AutoForm, ErrorsField } from '../../../components/uniforms-frontmatter'; import { ErrorBoundary } from '@sentry/react'; import { DataFormControls } from './DataFormControls'; -import useThemeColors from '../../hooks/useThemeColors'; import * as l10n from '@vscode/l10n'; import { LocalizationKey } from '../../../localization'; @@ -24,7 +23,6 @@ export const DataForm: React.FunctionComponent = ({ }: React.PropsWithChildren) => { const [bridge, setBridge] = useState(null); const [error, setError] = useState(undefined); - const { getColors } = useThemeColors(); const ajv = new Ajv({ allErrors: true, @@ -81,11 +79,11 @@ export const DataForm: React.FunctionComponent = ({
{model ? ( -

+

{l10n.t(LocalizationKey.dashboardDataViewDataFormModify)}

) : ( -

+

{l10n.t(LocalizationKey.dashboardDataViewDataFormAdd)}

)} diff --git a/src/dashboardWebView/index.tsx b/src/dashboardWebView/index.tsx index e88753f2..0a36e1c3 100644 --- a/src/dashboardWebView/index.tsx +++ b/src/dashboardWebView/index.tsx @@ -136,7 +136,7 @@ if (elm) { }); Sentry.setTag("type", "dashboard"); - if (document.body.getAttribute(`data - vscode - theme - id`)) { + if (document.body.getAttribute(`data-vscode-theme-id`)) { Sentry.setTag("theme", document.body.getAttribute(`data-vscode-theme-id`)); } }