|
1 |
| -import Book from './Book' |
2 |
| -import Conference from './Conference' |
3 |
| -import InCollection from './InCollection' |
4 |
| -import InProceedings from './InProceedings' |
| 1 | +// import Book from './Book' |
| 2 | +// import Conference from './Conference' |
| 3 | +// import InCollection from './InCollection' |
| 4 | +// import InProceedings from './InProceedings' |
5 | 5 | import Periodical from './Periodical'
|
6 |
| -import Proceedings from './Proceedings' |
7 |
| -import TechReport from './TechReport' |
8 |
| -import Thesis from './Thesis' |
| 6 | +// import Proceedings from './Proceedings' |
| 7 | +// import TechReport from './TechReport' |
| 8 | +// import Thesis from './Thesis' |
9 | 9 | import PropTypes from 'prop-types'
|
10 | 10 |
|
11 | 11 | const Entry = ({ entry }) => {
|
12 |
| - switch (entry.type) { |
13 |
| - case 'proceedings': |
14 |
| - return <Proceedings entry={entry} /> |
15 |
| - case 'unpublished': |
16 |
| - return <Proceedings entry={entry} /> |
17 |
| - case 'misc': |
18 |
| - return <Proceedings entry={entry} /> |
19 |
| - case 'book': |
20 |
| - return <Book entry={entry} /> |
21 |
| - case 'inbook': |
22 |
| - return <InCollection entry={entry} /> |
23 |
| - case 'incollection': |
24 |
| - return <InCollection entry={entry} /> |
25 |
| - case 'article': |
26 |
| - return <Periodical entry={entry} /> |
27 |
| - case 'conference': |
28 |
| - return <Conference entry={entry} /> |
29 |
| - case 'inproceedings': |
30 |
| - return <InProceedings entry={entry} /> |
31 |
| - case 'phdthesis': |
32 |
| - return <Thesis entry={entry} /> |
33 |
| - case 'mastersthesis': |
34 |
| - return <Thesis entry={entry} /> |
35 |
| - case 'techreport': |
36 |
| - return <TechReport entry={entry} /> |
37 |
| - } |
| 12 | + // switch (entry.type) { |
| 13 | + // case 'proceedings': |
| 14 | + // return <Proceedings entry={entry} /> |
| 15 | + // case 'unpublished': |
| 16 | + // return <Proceedings entry={entry} /> |
| 17 | + // case 'misc': |
| 18 | + // return <Proceedings entry={entry} /> |
| 19 | + // case 'book': |
| 20 | + // return <Book entry={entry} /> |
| 21 | + // case 'inbook': |
| 22 | + // return <InCollection entry={entry} /> |
| 23 | + // case 'incollection': |
| 24 | + // return <InCollection entry={entry} /> |
| 25 | + // case 'article': |
| 26 | + // return <Periodical entry={entry} /> |
| 27 | + // case 'conference': |
| 28 | + // return <Conference entry={entry} /> |
| 29 | + // case 'inproceedings': |
| 30 | + // return <InProceedings entry={entry} /> |
| 31 | + // case 'phdthesis': |
| 32 | + // return <Thesis entry={entry} /> |
| 33 | + // case 'mastersthesis': |
| 34 | + // return <Thesis entry={entry} /> |
| 35 | + // case 'techreport': |
| 36 | + // return <TechReport entry={entry} /> |
| 37 | + // } |
38 | 38 | return <Periodical entry={entry} />
|
39 | 39 | }
|
40 | 40 |
|
|
0 commit comments