Skip to content

Commit 9343a6c

Browse files
committed
Updated return to courses modules
1 parent cdee683 commit 9343a6c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

frontend/src/pages/Content.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import React, { useEffect, useState } from 'react';
22
import { useParams } from 'react-router-dom';
33
import Cookies from 'js-cookie';
44
import Notiflix from 'notiflix';
5-
import {Modal} from '../components/Modal';
5+
import { Modal } from '../components/Modal';
6+
import { ArrowLeftIcon } from '@heroicons/react/24/outline';
67

78
export function Content() {
89
const { courseID } = useParams();
@@ -165,9 +166,10 @@ export function Content() {
165166

166167
return (
167168
<div className="p-6">
168-
<div className="flex justify-between">
169-
<a href={`/courses/${courseID}`}>
170-
<span className="text-2xl font-bold mb-4 hover:underline ">{courseInfo.title}</span>
169+
<div className="flex justify-between items-center">
170+
<a href={`/courses/${courseID}`} className="flex items-center mb-5">
171+
<ArrowLeftIcon className="w-6 h-6" />
172+
<span className="text-2xl font-bold mb-0 ml-2 hover:underline">{courseInfo.title}</span>
171173
</a>
172174
{editButton}
173175
</div>
@@ -177,7 +179,7 @@ export function Content() {
177179
<div>
178180
{contentInfo.body}
179181
</div>
180-
<div className="flex flex-auto justify-center m-5">
182+
<div className="flex flex-auto justify-center m-5">
181183
{attachment}
182184
</div>
183185
</div>

0 commit comments

Comments
 (0)