-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add learning by sector,regions bar chart and Map for learning #1577
base: project/operational-learning-2.0
Are you sure you want to change the base?
feat: Add learning by sector,regions bar chart and Map for learning #1577
Conversation
|
89e0a01
to
e80e0a5
Compare
e80e0a5
to
3bde6b9
Compare
3bde6b9
to
3ef7309
Compare
3ef7309
to
a9f5ebb
Compare
a9f5ebb
to
3071d1b
Compare
6af5950
to
087c25b
Compare
94723fb
to
c5a62d6
Compare
652d37b
to
69f849c
Compare
69f849c
to
2b1a8f1
Compare
2b1a8f1
to
13e7220
Compare
13e7220
to
5e1c4da
Compare
"strings": { | ||
"downloadMapTitle": "Operational learning map", | ||
"learningLegendLabel": "Learnings", | ||
"learningCountLegendLabel":"Learning count" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix the spacings.
"learningCountLegendLabel":"Learning count" | |
"learningCountLegendLabel": "Learning count" |
import i18n from './i18n.json'; | ||
import styles from './styles.module.css'; | ||
|
||
type learningStatsResponse = GoApiResponse<'/api/v2/ops-learning/stats/'>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type learningStatsResponse = GoApiResponse<'/api/v2/ops-learning/stats/'>; | |
type LearningStatsResponse = GoApiResponse<'/api/v2/ops-learning/stats/'>; |
|
||
interface Props { | ||
className?: string; | ||
learning: learningStatsResponse | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
learning: learningStatsResponse | undefined; | |
learning: LearningStatsResponse | undefined; |
geometry: country.centroid as { | ||
type: 'Point', | ||
coordinates: [0, 0], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix the indentation here.
footerClassName={styles.footer} | ||
footerContent={( | ||
<div className={styles.learningsLegend}> | ||
<div className={styles.legendLabel}>{strings.learningLegendLabel}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate the lines here.
Addresses:
Changes
This PR doesn't introduce:
console.log
meant for debugging