Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated course url #32

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/example/Course_about.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

Check failure on line 1 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Too many blank lines at the beginning of file. Max of 0 allowed
import React, { useState, useEffect, useContext } from "react";

Check failure on line 2 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Strings must use singlequote
import { Button, Container, Col, Carousel } from "@edx/paragon";

Check failure on line 3 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Expected a line break after this opening brace

Check failure on line 3 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

'Col' is defined but never used

Check failure on line 3 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

'Carousel' is defined but never used

Check failure on line 3 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Expected a line break before this closing brace

Check failure on line 3 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Strings must use singlequote
import { AppContext } from '@edx/frontend-platform/react';


Check failure on line 6 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

More than 1 blank line not allowed
import Row from "react-bootstrap/Row";

Check failure on line 7 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

'react-bootstrap' should be listed in the project's dependencies. Run 'npm i -S react-bootstrap' to add it

Check failure on line 7 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

'Row' is defined but never used
import axios from "axios";
import TabItemComponent from "./TabItem";

Expand Down Expand Up @@ -53,8 +53,8 @@
const [enrolled, setEnrolled] = useState(false);
const [enrollMessage, setEnrollMessage] = useState("");

const url = "https://community.abzt.de"
const appsurl = "https://apps.community.abzt.de"
const url = getConfig().LMS_BASE_URL;
const appsurl = getConfig().BASE_URL;

// const url = "http://local.overhang.io:8000"
// const appsurl = "https://apps.local.overhang.io:3000"
Expand Down Expand Up @@ -127,7 +127,7 @@
}
//...
} catch (error) {
console.error(error);

Check warning on line 130 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Unexpected console statement
}
}

Expand Down Expand Up @@ -185,7 +185,7 @@
}
})
.catch(error => {
console.error('Error occurred:', error);

Check warning on line 188 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Unexpected console statement
});
}
}, [courseId, data]);
Expand All @@ -200,7 +200,7 @@
const Enrolment =
getConfig().LMS_BASE_URL + "/api/enrollment/v1/course/" + courseId;

const update_data = async function () {

Check warning on line 203 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Unexpected unnamed async function
const [firstResponse, secondResponse] = await Promise.all([
axios.get(Course),
axios.get(Enrolment),
Expand Down Expand Up @@ -415,7 +415,7 @@
<div
key={id}
className={`about-course-tabs`}
dangerouslySetInnerHTML={{ __html: data?.overview }}

Check warning on line 418 in src/example/Course_about.jsx

View workflow job for this annotation

GitHub Actions / test (16)

Dangerous property 'dangerouslySetInnerHTML' found
></div></AnimationOnScroll>
) : (
""
Expand Down
Loading