Skip to content
This repository was archived by the owner on Dec 25, 2022. It is now read-only.

Commit 70532e1

Browse files
author
Nguyen Manh Tung
committed
Update number of completed
1 parent ab33084 commit 70532e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/DetailCourse/DetailCourse.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Modal,
1212
Dropdown,
1313
Button,
14+
Tooltip,
1415
} from '@nextui-org/react';
1516
import classes from './DetailCourse.module.css';
1617
import { RiEyeLine } from 'react-icons/ri';
@@ -190,6 +191,10 @@ const DetailCourse = () => {
190191
Create at:{' '}
191192
<strong>{new Date(infoCourse.createdAt).toLocaleString()}</strong>
192193
</Text>
194+
<Text css={{ textAlign: 'center' }}>
195+
Number of completed:{' '}
196+
<strong>{infoCourse.data.filter(item => item.learned === true).length} / {infoCourse.data.length}</strong>
197+
</Text>
193198
<Spacer y={2} />
194199
<div className={classes.search}>
195200
<Input

0 commit comments

Comments
 (0)