Skip to content

Commit

Permalink
fix: remove persian and arabic font
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledrakhisi authored and CodeWithEmad committed Nov 27, 2023
1 parent 62443c2 commit 963142d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/generic/notices/NoticesProvider.jsx
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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 (
<div>
{isRedirected === true ? null : children}
Expand Down

0 comments on commit 963142d

Please sign in to comment.