The vertical navigation bar has been internationalized
parent
d2afb867bd
commit
a375b5d9f6
|
@ -12,8 +12,9 @@ import Logo from './Logo';
|
||||||
import NavbarTopDropDownMenus from './NavbarTopDropDownMenus';
|
import NavbarTopDropDownMenus from './NavbarTopDropDownMenus';
|
||||||
import NavbarVerticalMenu from './NavbarVerticalMenu';
|
import NavbarVerticalMenu from './NavbarVerticalMenu';
|
||||||
import ToggleButton from './ToggleButton';
|
import ToggleButton from './ToggleButton';
|
||||||
|
import { withTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const NavbarVertical = ({ navbarStyle }) => {
|
const NavbarVertical = ({ navbarStyle, t }) => {
|
||||||
const navBarRef = useRef(null);
|
const navBarRef = useRef(null);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
@ -113,7 +114,7 @@ const NavbarVertical = ({ navbarStyle }) => {
|
||||||
block
|
block
|
||||||
className="my-3 btn-purchase"
|
className="my-3 btn-purchase"
|
||||||
>
|
>
|
||||||
Purchase
|
{t('Purchase')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
@ -129,4 +130,4 @@ NavbarVertical.defaultProps = {
|
||||||
navbarStyle: 'transparent'
|
navbarStyle: 'transparent'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default NavbarVertical;
|
export default withTranslation()(NavbarVertical);
|
||||||
|
|
Loading…
Reference in New Issue