Skip to content

Commit

Permalink
fix: translation issue for change theme (#8199)
Browse files Browse the repository at this point in the history
Co-authored-by: Hamid <hamid@regentmarkets.com>
  • Loading branch information
mahdiyeh-deriv and hamid-deriv committed Jun 30, 2023
1 parent 6cb9238 commit b14273f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { routes } from '@deriv/shared';
import DarkModeToggleIcon from 'Assets/SvgComponents/footer/ic-footer-light-theme.svg';
import LightModeToggleIcon from 'Assets/SvgComponents/footer/ic-footer-dark-theme.svg';
import { Popover } from '@deriv/components';
import { localize } from '@deriv/translations';

const FooterIconSeparator = () => <div className='footer-icon-separator' />;

Expand Down Expand Up @@ -99,7 +100,7 @@ const TradingHubFooter = ({
/>
)}
<div className='footer__links--dark-mode'>
<Popover alignment='top' message='Change theme' zIndex={9999}>
<Popover alignment='top' message={localize('Change theme')} zIndex={9999}>
{is_dark_mode ? (
<LightModeToggleIcon onClick={changeTheme} />
) : (
Expand Down

0 comments on commit b14273f

Please sign in to comment.