From 082e9e02692d57e06c91fef02ab1fceb4f1fd7b6 Mon Sep 17 00:00:00 2001 From: DhruvArora-03 Date: Mon, 26 Feb 2024 23:28:18 -0600 Subject: [PATCH] fix: **revert this later** - comment out build errs --- src/views/components/common/List/List.tsx | 4 ++-- .../injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx | 4 ++-- src/views/lib/openNewTabFromContentScript.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/components/common/List/List.tsx b/src/views/components/common/List/List.tsx index 61275fac..2c3fd31e 100644 --- a/src/views/components/common/List/List.tsx +++ b/src/views/components/common/List/List.tsx @@ -1,7 +1,7 @@ import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd'; import type { ReactElement } from 'react'; import React, { useCallback, useState } from 'react'; -import { areEqual } from 'react-window'; +// import { areEqual } from 'react-window'; /* * Ctrl + f dragHandleProps on PopupCourseBlock.tsx for example implementation of drag handle (two lines of code) @@ -75,7 +75,7 @@ const Row: React.FC = React.memo(({ data: { items, gap }, index, style {provided => } ); -}, areEqual); +}); // , areEqual); /** * `List` is a functional component that displays a course meeting. diff --git a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx index afb55b8a..a6a314e2 100644 --- a/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx +++ b/src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx @@ -131,7 +131,7 @@ const HeadingAndActions: React.FC = ({ course, onClose, a
@@ -150,7 +150,7 @@ const HeadingAndActions: React.FC = ({ course, onClose, a {!courseAdded ? 'Add Course' : 'Remove Course'}
- + {/* */} ); }; diff --git a/src/views/lib/openNewTabFromContentScript.ts b/src/views/lib/openNewTabFromContentScript.ts index 3d0f9e91..f839aa0d 100644 --- a/src/views/lib/openNewTabFromContentScript.ts +++ b/src/views/lib/openNewTabFromContentScript.ts @@ -18,7 +18,7 @@ const messenger = createMessenger('background'); export async function openTabFromContentScript(url: string) { // @ts-ignore messenger - .openNewTab({ url }) + .openNewTab() .then(() => { console.log('New tab opened with URL:', url); })