Skip to content

Commit

Permalink
Merge pull request #21 from unfoldingWord/bugfix-cn-fix-import-issue
Browse files Browse the repository at this point in the history
fix for import error
  • Loading branch information
RobH123 authored Sep 8, 2020
2 parents 5df8c37 + 1740ab8 commit 32d26ec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./src/demos
2 changes: 1 addition & 1 deletion src/demos/book-package-check/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import BookPackageCheck from './BookPackageCheck';
language_code='en'
// bookID can be a USFM bookID, e.g., 'GEN', 'MAT', '3JN'
// and can also be 'OBS' (for Open Bible Stories)
bookID='TIT'
bookID='JUD'

// Default displayType is 'ErrorsWarnings'
// Alternatives are `SevereMediumLow', 'SingleList'
Expand Down
14 changes: 7 additions & 7 deletions src/demos/book-packages-check/BookPackagesCheck.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
// import { withStyles } from '@material-ui/core/styles';
import { withStyles } from '@material-ui/core/styles';
import * as books from '../../core/books/books';
import checkBookPackages from './checkBookPackages';
import { processNoticesToErrorsWarnings, processNoticesToSevereMediumLow, processNoticesToSingleList } from '../../core/notice-processing-functions';
Expand Down Expand Up @@ -172,10 +172,10 @@ function BookPackagesCheck(/*username, language_code, bookIDs,*/ props) {
// props: PropTypes.object,
// };

// const styles = theme => ({
// root: {
// },
// });
const styles = theme => ({
root: {
},
});

//export default withStyles(styles)(BookPackagesCheck);
export default BookPackagesCheck;
export default withStyles(styles)(BookPackagesCheck);
//export default BookPackagesCheck;
2 changes: 1 addition & 1 deletion src/demos/book-packages-check/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//export {checkBookPackages} from './checkBookPackages';
export {BookPackagesCheck} from './BookPackagesCheck';
export {default} from './BookPackagesCheck';

0 comments on commit 32d26ec

Please sign in to comment.