-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI change for scope selection. functionality to add book to scope. re…
…move button added for scop
- Loading branch information
Showing
3 changed files
with
56 additions
and
49 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
renderer/src/components/ProjectManagement/scope-management/BookItem.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import BookButton from '../Common/Button/BookButton'; | ||
import XMark from '@/icons/Xelah/XMark.svg'; | ||
|
||
function BookItem({ | ||
book, handleSelectBook, handleRemoveScope, isInScope, | ||
}) { | ||
return ( | ||
<div className="flex items-center"> | ||
<BookButton | ||
className={`flex items-center gap-1.5 w-full border ${isInScope ? 'bg-primary/25' : ''}`} | ||
onClick={(e) => handleSelectBook(e, book)} | ||
> | ||
<div | ||
title={isInScope ? 'Modify Chapters' : 'Add to scope'} | ||
role="button" | ||
tabIndex={-2} | ||
className="flex-[3.5] truncate text-left" | ||
> | ||
{book.name} | ||
</div> | ||
|
||
<XMark | ||
title="Remove Scope" | ||
className={`flex-1 w-2 h-5 text-black hover:text-white ${isInScope ? 'visible' : 'opacity-0 pointer-events-none'}`} | ||
onClick={(e) => handleRemoveScope(e, book)} | ||
/> | ||
</BookButton> | ||
</div> | ||
); | ||
} | ||
|
||
export default BookItem; |
9 changes: 0 additions & 9 deletions
9
renderer/src/components/ProjectManagement/scope-management/BookList.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters