fix: **revert this later** - comment out build errs

This commit is contained in:
DhruvArora-03
2024-02-26 23:28:18 -06:00
parent 8877af2029
commit 082e9e0269
3 changed files with 5 additions and 5 deletions

View File

@@ -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<RowProps> = React.memo(({ data: { items, gap }, index, style
{provided => <Item provided={provided} item={item} style={adjustedStyle} gap={gap} />}
</Draggable>
);
}, areEqual);
}); // , areEqual);
/**
* `List` is a functional component that displays a course meeting.

View File

@@ -131,7 +131,7 @@ const HeadingAndActions: React.FC<HeadingAndActionProps> = ({ course, onClose, a
</div>
<div className='my-3 flex flex-wrap items-center gap-[15px]'>
<Button variant='filled' color='ut-burntorange' icon={CalendarMonth} onClick={handleOpenCalendar} />
<Divider type='solid' color='ut-offwhite' className='h-7' />
{/* <Divider type='solid' color='ut-offwhite' className='h-7' /> */}
<Button variant='outline' color='ut-blue' icon={Reviews} onClick={handleOpenRateMyProf}>
RateMyProf
</Button>
@@ -150,7 +150,7 @@ const HeadingAndActions: React.FC<HeadingAndActionProps> = ({ course, onClose, a
{!courseAdded ? 'Add Course' : 'Remove Course'}
</Button>
</div>
<Divider />
{/* <Divider /> */}
</div>
);
};

View File

@@ -18,7 +18,7 @@ const messenger = createMessenger<MyMessages>('background');
export async function openTabFromContentScript(url: string) {
// @ts-ignore
messenger
.openNewTab({ url })
.openNewTab()
.then(() => {
console.log('New tab opened with URL:', url);
})