Skip to content

Commit 1c72be8

Browse files
author
Simeranjeet Sandhu
committed
Fixing merge conflicts
2 parents 96a22b3 + 5ff8719 commit 1c72be8

File tree

10 files changed

+174
-174
lines changed

10 files changed

+174
-174
lines changed

src/__tests__/components/buttons/ExternalButton.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
import { render, screen } from '@testing-library/react';
24

35
import ExternalBtn from '@/components/buttons/ExternalBtn';

src/__tests__/hooks/useSubscribedLists.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
'use strict';
4+
35
// tests for hooks/useSubscribedLists.js
46
import { renderHook } from '@testing-library/react-hooks';
57
import mockAxios from 'jest-mock-axios';

src/config/xAPIConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
'use strict';
4+
35
export const endpoint = process.env.NEXT_PUBLIC_XAPI_LRS_ENDPOINT;
46
export const key = process.env.NEXT_PUBLIC_XAPI_LRS_KEY;
57
export const secret = process.env.NEXT_PUBLIC_XAPI_LRS_SECRET;

src/hooks/useStorage.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ function useStorage(key, defaultValue, storageObject) {
1414
}
1515
return parseJSON;
1616
}
17+
if (jsonValue != null) {
18+
let parseJSON = null;
19+
try{
20+
parseJSON = JSON.parse(jsonValue);
21+
}catch(error){
22+
console.log("Storage parsing was not able to be processed!")
23+
}
24+
return parseJSON;
25+
}
1726

1827
if (typeof initialValue === 'function') {
1928
return defaultValue();

src/pages/lists/edit/[listId].js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
'use strict';
4+
35
import {
46
EyeIcon,
57
EyeOffIcon,

src/pages/login.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export default function Login() {
9191
placeholder='Email'
9292
maxLength="200"
9393
onKeyPress={(e)=>checkSpecialChar(e)}
94+
maxLength="200"
95+
onKeyPress={(e)=>checkSpecialChar(e)}
9496
className='shadow focus:shadow-md rounded-md p-2 w-full border border-gray-200 text-gray-700 focus:ring-2 ring-blue-400 outline-none transition-all duration-200'
9597
/>
9698
<input

src/pages/register.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
'use strict';
4+
35
import {
46
CheckCircleIcon,
57
RefreshIcon,
@@ -180,6 +182,7 @@ export default function Register() {
180182
})
181183
.catch((err) => {
182184
console.log("Account registration failed.");
185+
console.log("Account registration failed.");
183186
})
184187
.finally(() => {
185188
setLoading(false);

src/utils/xapi/xAPIMapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
'use strict';
4+
35
import { endpoint, key, secret } from '@/config/xAPIConfig';
46
import XAPI from "@xapi/xapi";
57

src/utils/xapi/xAPIWrapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
'use strict';
4+
35
import xAPIMapper from "./xAPIMapper";
46

57
/**

yarn.lock

Lines changed: 148 additions & 174 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)