From 5fe0a6fcac453f2ac9ff3abdd23d92f95ffcec1d Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 26 Nov 2023 21:10:03 +0330 Subject: [PATCH] fix: remove persian and arabic font --- src/generic/notices/NoticesProvider.jsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/generic/notices/NoticesProvider.jsx b/src/generic/notices/NoticesProvider.jsx index 73cef1aa50..ec163e2d51 100644 --- a/src/generic/notices/NoticesProvider.jsx +++ b/src/generic/notices/NoticesProvider.jsx @@ -1,7 +1,6 @@ import React, { useEffect, useState } from 'react'; import { getConfig } from '@edx/frontend-platform'; import PropTypes from 'prop-types'; -import { getLocale } from '@edx/frontend-platform/i18n'; import { getNotices } from './api'; /** * This component uses the platform-plugin-notices plugin to function. @@ -26,24 +25,6 @@ const NoticesProvider = ({ children }) => { getData(); }, []); - const setFont = () => { - const body = document.querySelector('body'); - const locale = getLocale(); - let className = ''; - - if (locale === 'fa' || locale === 'fa-ir') { - className = 'lang_fa'; - } else if (locale === 'ar') { - className = 'lang_ar'; - } - - body.className = className; - }; - - useEffect(() => { - setFont(); - }, [getLocale()]); - return (
{isRedirected === true ? null : children}