diff --git a/renderer/src/components/hooks/projects/useProjectsSort.js b/renderer/src/components/hooks/projects/useProjectsSort.js
index c5e0f6ccf..e30c42b6f 100644
--- a/renderer/src/components/hooks/projects/useProjectsSort.js
+++ b/renderer/src/components/hooks/projects/useProjectsSort.js
@@ -25,8 +25,8 @@ function useProjectsSort() {
const [loading, setLoading] = React.useState(false);
const [activeNotificationCount, setActiveNotificationCount] = React.useState(0);
- const starrtedData = [];
- const unstarrtedData = [];
+ const starredData = [];
+ const unstarredData = [];
const allProjects = [];
useEffect(() => {
@@ -233,10 +233,10 @@ function useProjectsSort() {
}
})
.then(() => {
- setStarredRow(starrtedData);
- setStarredProjets(starrtedData);
- setUnStarredRow(unstarrtedData);
- setUnStarredProjets(unstarrtedData);
+ setStarredRow(starredData);
+ setStarredProjets(starredData);
+ setUnStarredRow(unstarredData);
+ setUnStarredProjets(unstarredData);
setProjects(allProjects);
});
})
@@ -263,7 +263,6 @@ function useProjectsSort() {
if (_project.identification.name.en !== name) { return; }
const flavorName = _project.type.flavorType.flavor.name;
- logger.debug('useProjectSort.js', `flavorName == ${flavorName}`);
const dirNameMap = {
textTranslation: 'textTranslation',
textStories: 'textStories',
@@ -300,6 +299,7 @@ function useProjectsSort() {
textTranslation: 'textTranslation',
textStories: 'textStories',
audioTranslation: 'audioTranslation',
+ 'x-juxtalinear': 'x-juxtalinear',
};
return dirNameMap[flavorName];
};
diff --git a/renderer/src/modules/projects/tests/ProjectsListtest.js b/renderer/src/modules/projects/tests/ProjectsListtest.js
index 87b066c57..84de6be43 100644
--- a/renderer/src/modules/projects/tests/ProjectsListtest.js
+++ b/renderer/src/modules/projects/tests/ProjectsListtest.js
@@ -115,7 +115,7 @@
// // describe('Starred content table test', () => {
// // test('Check each content in the starred row', () => {
-// // render(intl());
+// // render(intl());
// // const starredrowname = document.querySelector('#starredrow-name');
// // expect(starredrowname.textContent).toBe('English NIV');
// // const starredrowlanguage = document.querySelector('#starredrow-language');
@@ -127,7 +127,7 @@
// // });
// // test('Check for starrred rows gets unstarred', () => {
-// // render(intl());
+// // render(intl());
// // const starredrow = document.querySelector('#starredrow');
// // expect(starredrow.children.length).toBe(4);
// // const starredbutton = document.querySelector('#starredicon');
@@ -137,7 +137,7 @@
// // test('check for search state change', async () => {
// // const { getByTestId } = render(
-// // intl(),
+// // intl(),
// // );
// // const searchbox = getByTestId('searchfield');
// // await act(async () => {
@@ -148,7 +148,7 @@
// // test('Check content after search in the starred row', async () => {
// // const { getByTestId } = render(
-// // intl(),
+// // intl(),
// // );
// // const searchbox = getByTestId('searchfield');
// // await act(async () => {
@@ -167,7 +167,7 @@
// // describe('Unstarred content fields test', () => {
// // test('Check each content in the unstarred row', () => {
-// // render(intl());
+// // render(intl());
// // const unstarredrowname = document.querySelector('#unstarredrow-name');
// // expect(unstarredrowname.textContent).toBe('Arabic NIV');
// // const unstarredrowlanguage = document.querySelector(
@@ -180,7 +180,7 @@
// // expect(unstarredrowtime.textContent).toBe('2 months ago');
// // });
// // test('Check for unstarrred rows gets starred', () => {
-// // render(intl());
+// // render(intl());
// // const unstarredrow = document.querySelector('#unstarredrow');
// // expect(unstarredrow.children.length).toBe(5);
// // const unstarredbutton = document.querySelector('#unstarredicon');
@@ -190,7 +190,7 @@
// // test('Check content after search in the unstarred row', async () => {
// // const { getByTestId } = render(
-// // intl(),
+// // intl(),
// // );
// // const searchbox = getByTestId('searchfield');
// // await act(async () => {
@@ -211,7 +211,7 @@
// // describe('Sorting check', () => {
// // test('Check whether items gets sorted', () => {
-// // render(intl());
+// // render(intl());
// // const sortbar = document.querySelector('#sorthead');
// // fireEvent.click(sortbar);
// // const starredrowname = document.querySelector('#starredrow-name');