diff options
| author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-06-28 12:25:39 -0400 |
|---|---|---|
| committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-06-28 12:25:39 -0400 |
| commit | 4521e91a7fd9e7127cf21fdbeba2417881b227ae (patch) | |
| tree | 8d1f61397ee962913ea7a8cc902afde657dfa19d | |
| parent | 9b0fa4d5581942c54375c10e3887c8010d3eb5e4 (diff) | |
and so it continues
| -rw-r--r-- | src/client/views/collections/CollectionCardDeckView.tsx | 6 | ||||
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index d3e23c962..60befebec 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -301,7 +301,7 @@ export class CollectionCardView extends CollectionSubView() { sort = (docs: Doc[], sortType: cardSortings, isDesc: boolean, dragIndex: number) => { // if (sortType === cardSortings.None) return docs; - if(sortType !== cardSortings.None){ + // if(sortType !== cardSortings.None){ docs.sort((docA, docB) => { const [typeA, typeB] = (() => { @@ -318,6 +318,7 @@ export class CollectionCardView extends CollectionSubView() { case cardSortings.Chat: return [NumCast(docA.chat) ?? 9999, NumCast(docB.chat) ?? 9999] + default: return [StrCast(docA.type), StrCast(docB.type)] } @@ -333,7 +334,8 @@ export class CollectionCardView extends CollectionSubView() { return -out - });} + }); + // } if (dragIndex != -1) { const draggedDoc = DragManager.docsBeingDragged[0]; diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 6184a7b73..5a5e80dc4 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -27,9 +27,12 @@ export enum GPTPopupMode { IMAGE, FLASHCARD, DATA, + CARD, SORT, + QUIZ } + interface GPTPopupProps {} @observer |
