Skip to content

Commit

Permalink
feat: add class-names for push-analytics (#2966)
Browse files Browse the repository at this point in the history
* feat: add class-names for push-analytics

* chore: apply consistent naming to push analytics class names

* chore: upgrade @dhis2/analytics
  • Loading branch information
HendrikThePendric authored Jan 29, 2024
1 parent 065c4b1 commit 5872a5a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"start-server-and-test": "^2.0.0"
},
"dependencies": {
"@dhis2/analytics": "^26.2.0",
"@dhis2/analytics": "^26.3.0",
"@dhis2/app-runtime": "^3.7.0",
"@dhis2/app-runtime-adapter-d2": "^1.1.0",
"@dhis2/app-service-datastore": "^1.0.0-beta.3",
Expand Down
1 change: 1 addition & 0 deletions src/components/DownloadMenu/GraphicsMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const GraphicsMenu = ({ hoverable, onDownload }) => {
icon={<IconImage24 color={colors.grey600} />}
label={i18n.t('Image (.png)')}
onClick={() => onDownload({ format: FILE_FORMAT_PNG })}
className="push-analytics-download-menu-item"
/>
<MenuItemComponent
key="pdf"
Expand Down
1 change: 1 addition & 0 deletions src/components/DownloadMenu/TableMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const TableMenu = ({ hoverable, onDownload }) => {
<MenuItemComponent
key="html"
label={i18n.t('HTML (.html)')}
className="push-analytics-download-menu-item"
onClick={() =>
onDownload({
type: DOWNLOAD_TYPE_TABLE,
Expand Down
6 changes: 5 additions & 1 deletion src/components/DownloadMenu/ToolbarDownloadDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const ToolbarDownloadDropdown = () => {
const { disabled, doDownloadData, doDownloadImage, visType } = useDownload()

return (
<HoverMenuDropdown label={i18n.t('Download')} disabled={disabled}>
<HoverMenuDropdown
label={i18n.t('Download')}
disabled={disabled}
className="push-analytics-download-dropdown-menu-button"
>
<DownloadMenu
hoverable
onDownloadData={doDownloadData}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2028,10 +2028,10 @@
classnames "^2.3.1"
prop-types "^15.7.2"

"@dhis2/analytics@^26.2.0":
version "26.2.0"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-26.2.0.tgz#36a7f258ac96ddab90f4001e62257e2cc64f202e"
integrity sha512-YcJu6EHnor6pbHmwXKYumLRVy/9TxuLtBDv9JIzjt9/APZa8kbak6sT2/53pnWDnbUjzDwR8EV1UIz24vAX+ig==
"@dhis2/analytics@^26.3.0":
version "26.3.0"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-26.3.0.tgz#ada2fe27442f19704fa704e334546416c85ea1d6"
integrity sha512-B/pUh8K8wyivL4yBiwqPoQ94pMWwCqh0xu3Uak4jmJqS+jO0slUlyDLtAmXU/jqRlRgRg1nR4u18npjd511Q7A==
dependencies:
"@dhis2/d2-ui-rich-text" "^7.4.1"
"@dhis2/multi-calendar-dates" "1.0.0"
Expand Down

0 comments on commit 5872a5a

Please sign in to comment.