Skip to content

Commit

Permalink
feat: add icon, rename and fix filter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
plinnegan committed May 18, 2021
1 parent 18b69a6 commit 1a4ce87
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-aggregate-mapper",
"version": "1.2.1",
"name": "pdac",
"version": "1.3.1",
"description": "",
"license": "BSD-3-Clause",
"private": true,
Expand Down
Binary file added public/dhis2-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@
margin-right: auto;
padding-bottom: 10px;
}

.dataTable {
width: 90vw;
}
5 changes: 3 additions & 2 deletions src/components/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const Page = ({ metadata, existingConfig }) => {

return (
<div className={classes.pageDiv}>
<h1>Event to Aggregate Mappings</h1>
<h1>Program Dataset Connector</h1>
<p>
This application is used to link program indicators to a data elements in a specific data set. This is used to
generate copies of the program indicator for each of the disaggregations assigned to the data element in the
Expand All @@ -297,12 +297,13 @@ const Page = ({ metadata, existingConfig }) => {
)}
<InputField
className={classes.filterInput}
inputWidth={'20vw'}
label="Filter"
name="filter"
value={filterText}
onChange={(e) => handleFilterChange(e)}
/>
<Table>
<Table className={classes.dataTable}>
<TableHead>
<TableRowHead>
<TableCellHead key="selected">
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function filterRowsByText(dePiMaps, orderedRowIds, text) {
}
const textLower = text.toLocaleLowerCase()
const result = []
for (rowId of orderedRowIds) {
for (const rowId of orderedRowIds) {
const { dsName, deName, piName } = dePiMaps[rowId]
const dsLower = dsName.toLocaleLowerCase()
const deLower = deName.toLocaleLowerCase()
Expand Down

0 comments on commit 1a4ce87

Please sign in to comment.