aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCarouselView.tsx
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-09-29 15:54:49 -0400
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-09-29 15:54:49 -0400
commitef2a1037a418ad9fa35d6c60feba914d828d5b84 (patch)
tree311081f05d6fba0d9d023168b4e11c9e6f7d66f1 /src/client/views/collections/CollectionCarouselView.tsx
parentfa10d872b2a63f5a53461c8fb5473706e78af4e9 (diff)
clean up
Diffstat (limited to 'src/client/views/collections/CollectionCarouselView.tsx')
-rw-r--r--src/client/views/collections/CollectionCarouselView.tsx16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/client/views/collections/CollectionCarouselView.tsx b/src/client/views/collections/CollectionCarouselView.tsx
index 91a7c6514..04a0320fc 100644
--- a/src/client/views/collections/CollectionCarouselView.tsx
+++ b/src/client/views/collections/CollectionCarouselView.tsx
@@ -254,15 +254,6 @@ export class CollectionCarouselView extends CollectionSubView() {
addFlashcard() {
const newDoc = Docs.Create.ComparisonDocument('', { _layout_isFlashcard: true, _width: 300, _height: 300 });
this.addDocument?.(newDoc);
- // DocUtils.copyDragFactory(newDoc);
- // this._props.addDocument?.();
- // newDoc.layout = this.layoutDoc;
- // newDoc.data = this.dataDoc;
- // Doc.AddDocToList()
- // this._props.parent._props.addDocument();
- // this.childLayoutPairs.push({ newDoc.layout, newDoc.data});
- // this._props.addDocument?.(newDoc);
- // console.log('HERE');
}
@computed get buttons() {
@@ -275,11 +266,6 @@ export class CollectionCarouselView extends CollectionSubView() {
<FontAwesomeIcon icon="star" color={this.carouselItems[this.carouselIndex]?.[this.starField] ? 'yellow' : 'gray'} size="1x" />
</div>
</Tooltip>
- {/* <Tooltip title="add new flashcard to pile">
- <div key="add" className="carouselView-add" onClick={this.addFlashcard}>
- <FontAwesomeIcon icon="plus" color={this.carouselItems?.[NumCast(this.layoutDoc._carousel_index)].layout[this.starField] ? 'yellow' : 'gray'} size="1x" />
- </div>
- </Tooltip> */}
</div>
<div key="back" className="carouselView-back" onClick={this.goback}>
<FontAwesomeIcon icon="chevron-left" size="2x" />
@@ -287,7 +273,7 @@ export class CollectionCarouselView extends CollectionSubView() {
<div key="fwd" className="carouselView-fwd" onClick={this.advance}>
<FontAwesomeIcon icon="chevron-right" size="2x" />
</div>
- {this.practiceMode ? (
+ {this.practiceMode == practiceMode.PRACTICE ? (
<div>
<Tooltip title="Incorrect. View again later.">
<div key="remove" className="carouselView-remove" onClick={e => this.setPracticeVal(e, practiceVal.MISSED)}>