diff --git a/l10n/bundle.l10n.json b/l10n/bundle.l10n.json index 7daf8e15..3ee4a2e7 100644 --- a/l10n/bundle.l10n.json +++ b/l10n/bundle.l10n.json @@ -110,6 +110,7 @@ "dashboard.dataView.dataView.getStarted": "Select a data type to get started", "dashboard.dataView.dataView.noDataFiles": "No data files found", "dashboard.dataView.dataView.getStarted.link": "Read more to get started using data files", + "dashboard.dataView.dataView.update.message": "Updated your data entries", "dashboard.dataView.emptyView.heading": "Select your date type first", diff --git a/src/dashboardWebView/components/DataView/DataView.tsx b/src/dashboardWebView/components/DataView/DataView.tsx index 686352dd..5e73bd5d 100644 --- a/src/dashboardWebView/components/DataView/DataView.tsx +++ b/src/dashboardWebView/components/DataView/DataView.tsx @@ -19,7 +19,6 @@ import { ChevronRightIcon, CircleStackIcon } from '@heroicons/react/24/outline'; import { DataType } from '../../../models/DataType'; import { TelemetryEvent } from '../../../constants'; import { NavigationItem } from '../Layout'; -import useThemeColors from '../../hooks/useThemeColors'; import * as l10n from '@vscode/l10n'; import { LocalizationKey } from '../../../localization'; @@ -32,7 +31,6 @@ export const DataView: React.FunctionComponent = ( const [selectedIndex, setSelectedIndex] = useState(null); const [dataEntries, setDataEntries] = useState(null); const settings = useRecoilValue(SettingsSelector); - const { getColors } = useThemeColors(); const setSchema = (dataFile: DataFile) => { setSelectedData(dataFile); @@ -109,7 +107,7 @@ export const DataView: React.FunctionComponent = ( entries: data }); - Messenger.send(DashboardMessage.showNotification, 'Updated your data entries'); + Messenger.send(DashboardMessage.showNotification, l10n.t(LocalizationKey.dashboardDataViewDataViewUpdateMessage)); }, [selectedData] ); @@ -167,27 +165,15 @@ export const DataView: React.FunctionComponent = (