-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add Mentor Statistics * refactor: code review
- Loading branch information
1 parent
3972cd4
commit 2bfb224
Showing
13 changed files
with
382 additions
and
57 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
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
21 changes: 21 additions & 0 deletions
21
client/src/modules/AdminDashboard/components/MentorsCountriesCard/MentorsCountriesCard.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,21 @@ | ||
import { Card } from 'antd'; | ||
import { CountriesStatsDto } from 'api'; | ||
import dynamic from 'next/dynamic'; | ||
|
||
type Props = { | ||
countriesStats: CountriesStatsDto; | ||
activeCount: number; | ||
}; | ||
|
||
const CountriesChart = dynamic(() => import('../CountriesChart/CountriesChart'), { ssr: false }); | ||
|
||
export const MentorsCountriesCard = ({ countriesStats, activeCount }: Props) => { | ||
const { countries } = countriesStats; | ||
return ( | ||
<Card title="Mentors Countries Stats"> | ||
<div style={{ height: 400, width: '100%' }}> | ||
<CountriesChart data={countries} activeCount={activeCount} xAxisTitle={'Number of Students'} color={'purple'} /> | ||
</div> | ||
</Card> | ||
); | ||
}; |
Empty file.
8 changes: 4 additions & 4 deletions
8
client/src/modules/AdminDashboard/components/StudentsCountriesCard/StudentsCountriesCard.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
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
Oops, something went wrong.