Skip to content

Commit 54e5845

Browse files
committed
fix some attr
1 parent 592bdae commit 54e5845

4 files changed

Lines changed: 11 additions & 15 deletions

File tree

src/components/BibleBookList/BibleBookList.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function BibleBookList({
1818
BibleBookListClasses,
1919
bookClasses,
2020
testaments,
21-
showTitle,
2221
sortFirstNT,
2322
}) {
2423
const [checkState, setCheckState] = useState(!showInactive);
@@ -99,7 +98,7 @@ function BibleBookList({
9998
{testamentList.map((el, index) => {
10099
return (
101100
<BookList
102-
title={showTitle ? el.title : ''}
101+
title={el.title}
103102
bookList={el.bookList}
104103
showInactive={!checkState}
105104
onClickBook={onClickBook}
@@ -119,16 +118,15 @@ function BibleBookList({
119118
}
120119

121120
BibleBookList.defaultProps = {
122-
showCheckbox: false,
121+
showCheckbox: true,
123122
sortFirstNT: false,
124123
testaments: 'all',
125-
titleOT: 'Old Testament',
126-
titleNT: 'New Testament',
124+
titleOT: '',
125+
titleNT: '',
127126
showInactive: true,
128-
onClickBook: () => {},
127+
onClickBook: (bookId) => {},
129128
labelForCheckbox: 'Show only existing books',
130129
titleBooks: {},
131-
BibleBookListClasses: {},
132130
availableBookList: [],
133131
};
134132

@@ -138,8 +136,6 @@ BibleBookList.propTypes = {
138136
titleNT: PropTypes.string,
139137
/** block header of "Old Testament" */
140138
titleOT: PropTypes.string,
141-
/** show block header */
142-
showTitle: PropTypes.bool,
143139
/** when true, show first New Testament, second - Old Testament */
144140
sortFirstNT: PropTypes.bool,
145141
/** array of existing bookId's */

src/components/BibleBookList/BibleBookList.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ const availableBookList = [
1919

2020
<BibleBookList
2121
testaments="all"
22-
showTitle={true}
2322
sortFirstNT={true}
2423
showInactive={false}
25-
showCheckbox={true}
26-
titleOT="Ветхий завет"
24+
titleOT="Old Testament"
25+
titleNT="New Testament"
2726
titleBooks={titleBooks}
2827
availableBookList={availableBookList}
2928
selectedBookId={selectedBookId}
@@ -49,9 +48,9 @@ const availableBookList = [
4948

5049
<BibleBookList
5150
testaments="ot"
52-
showTitle={true}
5351
titleOT="OT"
5452
titleNT="NT"
53+
showCheckbox={false}
5554
titleBooks={titleBooks}
5655
availableBookList={availableBookList}
5756
/>;
@@ -89,8 +88,6 @@ const availableBookList = [
8988

9089
<BibleBookList
9190
testaments="ot"
92-
showCheckbox={true}
93-
showTitle={true}
9491
titleOT="Ветхий завет"
9592
availableBookList={availableBookList}
9693
selectedBookId="exo"

src/components/BookList/BookList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ BookList.defaultProps = {
4040
bookList: [],
4141
showInactive: true,
4242
selectedBookId: '',
43+
onClickBook: (bookId) => {},
4344
};
4445

4546
BookList.propTypes = {

src/components/ChapterList/ChapterList.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function ChapterList({
3333
ChapterList.defaultProps = {
3434
chapterList: [],
3535
selectedChapter: '',
36+
chapterPrefix: '',
37+
onClickChapter: (chapterId) => {},
3638
};
3739

3840
ChapterList.propTypes = {

0 commit comments

Comments
 (0)