Skip to content

Commit 2286ef9

Browse files
committed
lint and prettier
1 parent 8b93928 commit 2286ef9

2 files changed

Lines changed: 36 additions & 12 deletions

File tree

src/components/BibleBookList/BibleBookList.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { useState } from "react";
2-
import BookList from "../BookList";
3-
import PropTypes from "prop-types";
4-
import { BIBLE_LIST, BIBLE_BOOKS } from "./config";
5-
import Checkbox from "@material-ui/core/Checkbox";
6-
import { FormControlLabel } from "@material-ui/core";
1+
import React, { useState } from 'react';
2+
import BookList from '../BookList';
3+
import PropTypes from 'prop-types';
4+
import { BIBLE_LIST, BIBLE_BOOKS } from './config';
5+
import Checkbox from '@material-ui/core/Checkbox';
6+
import { FormControlLabel } from '@material-ui/core';
77

88
function BibleBookList({
99
labelForCheckbox,
@@ -76,15 +76,15 @@ function BibleBookList({
7676
testamentList.reverse();
7777
}
7878
if (showCheckbox) {
79-
showCheckbox = allBooksIsSet(currentBookListOT) || allBooksIsSet(currentBookListNT);
79+
showCheckbox =
80+
allBooksIsSet(currentBookListOT) || allBooksIsSet(currentBookListNT);
8081
}
8182
break;
8283

8384
default:
8485
break;
8586
}
8687

87-
8888
const checkboxRender = showCheckbox ? (
8989
<FormControlLabel
9090
classes={{

src/components/BibleBookList/BibleBookList.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,34 @@ const onClickBook = (bookId) => setSelectedBookId(bookId);
1818
const availableBookList = ['gen', 'exo', 'lev', 'num', 'mat', 'mrk', 'luk', 'tit'];
1919

2020
const NTBookList = [
21-
'mat', 'mrk', 'luk', 'jhn', 'act', 'rom', '1co',
22-
'2co', 'gal', 'eph', 'php', 'col', '1th', '2th',
23-
'1ti', '2ti', 'tit', 'phm', 'heb', 'jas', '1pe',
24-
'2pe', '1jn', '2jn', '3jn', 'jud', 'rev'];
21+
'mat',
22+
'mrk',
23+
'luk',
24+
'jhn',
25+
'act',
26+
'rom',
27+
'1co',
28+
'2co',
29+
'gal',
30+
'eph',
31+
'php',
32+
'col',
33+
'1th',
34+
'2th',
35+
'1ti',
36+
'2ti',
37+
'tit',
38+
'phm',
39+
'heb',
40+
'jas',
41+
'1pe',
42+
'2pe',
43+
'1jn',
44+
'2jn',
45+
'3jn',
46+
'jud',
47+
'rev',
48+
];
2549

2650
<BibleBookList
2751
testaments="all"

0 commit comments

Comments
 (0)