Skip to content

Commit

Permalink
Module not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-techjoomla authored and manojLondhe committed Apr 25, 2023
1 parent 9f5f03d commit cc8274c
Show file tree
Hide file tree
Showing 19 changed files with 63 additions and 1,433 deletions.
2 changes: 1 addition & 1 deletion apps/front-end/src/pages/admin/facilitator/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function Table() {
<HStack space={2}>
<Button variant={"primary"}>Register prerak</Button>
<Button variant={"primary"}>Send an invite</Button>
<Clipboard text={`${getBaseUrl()}facilitator/1`}>
<Clipboard text={`${getBaseUrl()}facilitator-self-onbording/1`}>
<IconByName
name="FileCopyLineIcon"
isDisabled
Expand Down
4 changes: 2 additions & 2 deletions apps/front-end/src/routes/guestRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default [
component: LoginComponent,
},
{
path: "/facilitator/:id",
path: "/facilitator-self-onbording/:id",
component: Home,
},
{
path: "*",
component: NotFound,
component: LoginComponent,
},
];
23 changes: 2 additions & 21 deletions lib/common-lib/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,8 @@ import ProgressBar from './components/ProgressBar'
import Tab from './components/Tab'
import Loading from './components/Loading'
import FilterButton from './components/FilterButton'
import * as teacherRegistryService from './services/teacherRegistryService'
import * as classRegistryService from './services/classRegistryService'
import * as attendanceRegistryService from './services/attendanceRegistryService'
import * as studentRegistryService from './services/studentRegistryService'
import * as worksheetRegistryService from './services/worksheetRegistryService'
import * as questionRegistryService from './services/questionRegistryService'
import * as likeRegistryService from './services/likeRegistryService'
import * as commentRegistryService from './services/commentRegistryService'
import * as assessmentRegistryService from './services/assessmentRegistryService'
import * as facilitatorRegistryService from './services/facilitatorRegistryService'
import { getApiConfig } from './services/configApiRegistryService'
import * as authRegistryService from './services/authRegistryService'
import { t } from 'i18next'
import Camera from './components/Camera'

Expand All @@ -46,22 +37,12 @@ export {
ProgressBar,
Tab,
Loading,
teacherRegistryService,
classRegistryService,
attendanceRegistryService,
studentRegistryService,
worksheetRegistryService,
questionRegistryService,
likeRegistryService,
commentRegistryService,
assessmentRegistryService,
facilitatorRegistryService,
getApiConfig,
authRegistryService,
t,
Camera
}

export * from './services/Auth'
export * from './services/RestClient'
export * from './services/EventBus'
export * from './components/helper'
Expand Down
22 changes: 0 additions & 22 deletions lib/common-lib/src/services/Auth.ts

This file was deleted.

175 changes: 0 additions & 175 deletions lib/common-lib/src/services/assessmentRegistryService.js

This file was deleted.

108 changes: 0 additions & 108 deletions lib/common-lib/src/services/attendanceRegistryService.js

This file was deleted.

19 changes: 19 additions & 0 deletions lib/common-lib/src/services/authRegistryService.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { get, post, update as coreUpdate } from './RestClient'
import manifest from '../manifest.json'
import mapInterfaceData from './mapInterfaceData'

export const login = async (params = {}, header = {}) => {
let headers = {
...header
}
const result = await post(`${manifest.api_url}/users/login`, params, {
params,
headers
})

if (result?.data) {
return result?.data
} else {
return {}
}
}
Loading

0 comments on commit cc8274c

Please sign in to comment.