-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add epam mentors stats (#2426)
- Loading branch information
1 parent
e8cd119
commit 0e56bea
Showing
8 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
client/src/modules/AdminDashboard/components/EpamMentorsStatsCard/EpamMentorsStatsCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Card, Typography } from 'antd'; | ||
import { CourseMentorsStatsDto } from 'api'; | ||
import dynamic from 'next/dynamic'; | ||
|
||
type Props = { | ||
mentorsStats: CourseMentorsStatsDto; | ||
}; | ||
|
||
const { Text } = Typography; | ||
|
||
const MentorsStatsChart = dynamic(() => import('../LiquidChart/LiquidChart'), { ssr: false }); | ||
|
||
export const EpamMentorsStatsCard = ({ mentorsStats }: Props) => { | ||
return ( | ||
<Card title="Epam Mentors"> | ||
<Text strong> | ||
Epam Mentors: {mentorsStats.epamMentorsCount} / {mentorsStats.mentorsActiveCount} | ||
</Text> | ||
<div style={{ height: 200, width: '100%' }}> | ||
<MentorsStatsChart | ||
count={mentorsStats.epamMentorsCount} | ||
total={mentorsStats.mentorsActiveCount} | ||
color="Purple" | ||
/> | ||
</div> | ||
</Card> | ||
); | ||
}; |
1 change: 1 addition & 0 deletions
1
client/src/modules/AdminDashboard/components/EpamMentorsStatsCard/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { EpamMentorsStatsCard } from './EpamMentorsStatsCard'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export enum Colors { | ||
Purple = '#9254de', | ||
Gold = '#613400', | ||
Blue = '#1677ff', | ||
Volcano = '#fa541c', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters