Skip to content

Commit

Permalink
code formation
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalsabade committed Feb 7, 2024
1 parent 31394b3 commit 16ea287
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 21 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# nulp-elite-ui

Repository for NULP Webapp
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"clean": "lerna run --parallel clean",
"cls-dep": "npx rimraf ./**/node_modules",
"format": "prettier --write .",
"format:check": "prettier --check ."
"format:check": "prettier --check .",
"prettier": "prettier --check \"**/*.js\""
},
"devDependencies": {
"lerna": "4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const telemetryFactory = {
// This API is used to log telemetry of assessments that have occured when the user is viewing content
assess: (assessEventInput) => {
const eventData = getEventData(assessEventInput)

if (CsTelemetryModule.instance.isInitialised) {
CsTelemetryModule.instance.telemetryService.raiseAssesTelemetry({
options: eventData.options,
Expand All @@ -78,10 +78,9 @@ export const telemetryFactory = {

response: (responseEventInput) => {
const eventData = getEventData(responseEventInput)

if (CsTelemetryModule.instance.isInitialised) {
CsTelemetryModule.instance.telemetryService.raiseResponseTelemetry({

options: eventData.options,
edata: eventData.edata
})
Expand Down
1 change: 0 additions & 1 deletion packages/common-lib/src/services/classRegistryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const getAll = async (
}
)
if (result.data) {

console.log(result.data.data)
if (coreData === 'getCoreData') {
return result.data.data
Expand Down
2 changes: 1 addition & 1 deletion packages/common-lib/src/services/studentRegistryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const getByTeacher = async () => {
})

if (classResult[0].id) {
const groupdID = localStorage.getItem("groupId")
const groupdID = localStorage.getItem('groupId')
return {
class: groupdID,
data: await getAll({
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/pages/ComingSoon.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function CommingSoon({ footerLinks }) {
LeftIcon: (
<HStack>
<img
width={"100px"}
src={require("../../src/assets/TSHeader.png")}
width={"100px"}
src={require("../../src/assets/TSHeader.png")}
/>
</HStack>
),
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/pages/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function Login({ swPath }) {
);
if (result?.data) {
let token = result.data.access_token;
sessionStorage.setItem('token', token);
sessionStorage.setItem("token", token);

const resultTeacher = await userRegistryService.getOne();
if (resultTeacher?.id) {
Expand Down Expand Up @@ -179,7 +179,6 @@ export default function Login({ swPath }) {
<Center width={width}>
<VStack space="" w="300px">
<Box style={{ marginLeft: "25px" }}>

<Heading>{t("WELCOME")}</Heading>
</Box>
<VStack space={2} pt={"25px"} pb={"25px"}>
Expand Down
8 changes: 3 additions & 5 deletions packages/nulp_elite/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import "./App.css";
import { AppShell } from "@shiksha/common-lib";
import SampleTest from "pages/SampleTest"
import SampleTest from "pages/SampleTest";

function App() {
const routes = [
Expand All @@ -13,10 +13,8 @@ function App() {
];
// const LoginComponent = React.lazy(() => import("core/Login"));

return (
<SampleTest />
)

return <SampleTest />;

// <AppShell routes={routes} AuthComponent={LoginComponent} />;
}

Expand Down
10 changes: 4 additions & 6 deletions packages/nulp_elite/src/pages/SampleTest.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React from 'react'
import React from "react";

const SampleTest = () => {
return (
<div>SampleTest</div>
)
}
return <div>SampleTest</div>;
};

export default SampleTest
export default SampleTest;

0 comments on commit 16ea287

Please sign in to comment.