Skip to content

Commit

Permalink
remove React global reference
Browse files Browse the repository at this point in the history
  • Loading branch information
brenthagen committed Sep 26, 2024
1 parent baa0e07 commit 4d67423
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useContext } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { I18nContext, useTranslation } from 'react-i18next'
import { Link } from 'react-router-dom'
Expand Down Expand Up @@ -273,7 +274,7 @@ function FeatureFlags(): JSX.Element {
function LanguageToggle(): JSX.Element | null {
const enableLocalization = useFeatureFlag('enableLocalization')

const { i18n } = React.useContext(I18nContext)
const { i18n } = useContext(I18nContext)

return enableLocalization ? (
<RobotSettingButton
Expand Down

0 comments on commit 4d67423

Please sign in to comment.