@@ -6,7 +6,7 @@ import { MainHeader } from './MainHeader.jsx';
66import ContentWrap from './ContentWrap.jsx' ;
77import Footer from './Footer.jsx' ;
88import SavedItemPane from './SavedItemPane.jsx' ;
9- import AddLibrary from './AddLibrary.jsx' ;
9+
1010import Modal from './Modal.jsx' ;
1111import { computeHtml , computeCss , computeJs } from '../computes' ;
1212import {
@@ -67,7 +67,7 @@ export default class App extends Component {
6767 this . AUTO_SAVE_INTERVAL = 15000 ; // 15 seconds
6868 this . modalDefaultStates = {
6969 isModalOpen : false ,
70- isAddLibraryModalOpen : false ,
70+
7171 isSettingsModalOpen : false ,
7272 isHelpModalOpen : false ,
7373 isPricingModalOpen : false ,
@@ -590,9 +590,7 @@ BookLibService.Borrow(id) {
590590 } ) ;
591591 }
592592
593- async openAddLibrary ( ) {
594- await this . setState ( { isAddLibraryModalOpen : true } ) ;
595- }
593+
596594
597595 async closeSavedItemsPane ( ) {
598596 await this . setState ( {
@@ -1696,7 +1694,7 @@ BookLibService.Borrow(id) {
16961694 loginBtnHandler = { this . loginBtnClickHandler . bind ( this ) }
16971695 proBtnHandler = { this . proBtnClickHandler . bind ( this ) }
16981696 profileBtnHandler = { this . profileBtnClickHandler . bind ( this ) }
1699- addLibraryBtnHandler = { this . openAddLibrary . bind ( this ) }
1697+
17001698 runBtnClickHandler = { this . runBtnClickHandler . bind ( this ) }
17011699 isFetchingItems = { this . state . isFetchingItems }
17021700 isSaving = { this . state . isSaving }
@@ -1798,26 +1796,7 @@ BookLibService.Borrow(id) {
17981796 />
17991797 </ form >
18001798
1801- < Modal
1802- show = { this . state . isAddLibraryModalOpen }
1803- closeHandler = { async ( ) =>
1804- await this . setState ( { isAddLibraryModalOpen : false } )
1805- }
1806- >
1807- < AddLibrary
1808- js = {
1809- this . state . currentItem . externalLibs
1810- ? this . state . currentItem . externalLibs . js
1811- : ''
1812- }
1813- css = {
1814- this . state . currentItem . externalLibs
1815- ? this . state . currentItem . externalLibs . css
1816- : ''
1817- }
1818- onChange = { this . onExternalLibChange . bind ( this ) }
1819- />
1820- </ Modal >
1799+
18211800 < Modal
18221801 show = { this . state . isNotificationsModalOpen }
18231802 closeHandler = { async ( ) =>
0 commit comments