Skip to content

Commit

Permalink
Merge branch 'master' into m4_update
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque authored Nov 7, 2024
2 parents 11ed210 + 03e648c commit dac6519
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 14.x
- run: npm install -g codecov
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: codecov
- run: npm run lint
- run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
20 changes: 12 additions & 8 deletions src/miradorDownloadPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ class MiradorDownload extends Component {
}

render() {
const { handleClose, openDownloadDialog, ...menuProps } = this.props;

return (
<MenuItem onClick={() => this.openDialogAndCloseMenu()}>
<ListItemIcon>
<VerticalAlignBottomIcon />
</ListItemIcon>
<ListItemText primaryTypographyProps={{ variant: 'body1' }}>
Download
</ListItemText>
</MenuItem>
<React.Fragment>

Check failure on line 46 in src/miradorDownloadPlugin.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all

Check failure on line 46 in src/miradorDownloadPlugin.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
<MenuItem {...menuProps} onClick={() => this.openDialogAndCloseMenu()}>
<ListItemIcon>
<DownloadIcon />

Check failure on line 49 in src/miradorDownloadPlugin.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'DownloadIcon' is not defined

Check failure on line 49 in src/miradorDownloadPlugin.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'DownloadIcon' is not defined
</ListItemIcon>
<ListItemText primaryTypographyProps={{ variant: 'body1' }}>
Download
</ListItemText>
</MenuItem>
</React.Fragment>
);
}
}
Expand Down

0 comments on commit dac6519

Please sign in to comment.