Skip to content

Commit

Permalink
Update joinCourse.js
Browse files Browse the repository at this point in the history
  • Loading branch information
paritshivani authored Nov 14, 2024
1 parent 8e2c9f4 commit 85b4ab0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ const JoinCourse = () => {

const handleLinkClick = (id) => {
if (isEnroll) {
navigate(`${routeConfig.ROUTES.PLAYER_PAGE.PLAYER}?id=${id}`, {
navigate(`${routeConfig.ROUTES.PLAYER_PAGE.PLAYER}?${id}`, {
state: {
coursename: userData?.result?.content?.name,
batchid: batchDetails?.batchId,
Expand Down Expand Up @@ -1668,7 +1668,7 @@ const JoinCourse = () => {
</AccordionSummary>

<AccordionDetails
style={{ padding: "12px", margin: "-10px 0px" }}
style={{ 'padding': '12px',margin: '-10px 0px'}}
>
{/* If it's not a content collection, render it like a clickable child */}
{faqIndex.mimeType !==
Expand Down Expand Up @@ -1699,7 +1699,7 @@ const JoinCourse = () => {
<AccordionDetails
key={faqIndexname.identifier || faqIndexname.name}
className="border-bottom"
style={{ padding: "12px", margin: "-10px 0px" }}
style={{ 'padding': '12px',margin: '-10px 0px'}}
>
{faqIndexname.children &&
faqIndexname.children.length > 0 ? (
Expand Down Expand Up @@ -1742,10 +1742,7 @@ const JoinCourse = () => {
<AccordionDetails
key={child.identifier || child.name}
className="border-bottom"
style={{
padding: "12px",
margin: "-10px 0px",
}}
style={{ 'padding': '12px',margin: '-10px 0px'}}
>
{child.children &&
child.children.length > 0 ? (
Expand Down

0 comments on commit 85b4ab0

Please sign in to comment.