Skip to content
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

fix for import error #21

Merged
merged 2 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';