diff --git a/src/components/Alert/Alert.jsx b/src/components/Alert/Alert.jsx index 34bf8623..3411eccc 100644 --- a/src/components/Alert/Alert.jsx +++ b/src/components/Alert/Alert.jsx @@ -1,9 +1,7 @@ import PropTypes from 'prop-types'; import React, { useContext } from 'react'; -import { - RUIContext, - withGlobalProps, -} from '../../provider'; +import { TranslationsContext } from '../../providers/translations'; +import { withGlobalProps } from '../../providers/globalProps'; import { classNames } from '../../utils/classNames'; import { transferProps } from '../../utils/transferProps'; import { getRootColorClassName } from '../_helpers/getRootColorClassName'; @@ -17,7 +15,7 @@ export const Alert = ({ onClose, ...restProps }) => { - const { translations } = useContext(RUIContext); + const translations = useContext(TranslationsContext); return (
{ ...restProps } = props; - const { translations } = useContext(RUIContext); + const translations = useContext(TranslationsContext); return (
- + ); }); ``` @@ -126,7 +126,7 @@ React.createElement(() => { React UI docs. You may not need it in your application. */} return ( -