fix: **revert this later** - comment out build errs
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
|
import { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
|
||||||
import type { ReactElement } from 'react';
|
import type { ReactElement } from 'react';
|
||||||
import React, { useCallback, useState } 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)
|
* 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} />}
|
{provided => <Item provided={provided} item={item} style={adjustedStyle} gap={gap} />}
|
||||||
</Draggable>
|
</Draggable>
|
||||||
);
|
);
|
||||||
}, areEqual);
|
}); // , areEqual);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `List` is a functional component that displays a course meeting.
|
* `List` is a functional component that displays a course meeting.
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ const HeadingAndActions: React.FC<HeadingAndActionProps> = ({ course, onClose, a
|
|||||||
</div>
|
</div>
|
||||||
<div className='my-3 flex flex-wrap items-center gap-[15px]'>
|
<div className='my-3 flex flex-wrap items-center gap-[15px]'>
|
||||||
<Button variant='filled' color='ut-burntorange' icon={CalendarMonth} onClick={handleOpenCalendar} />
|
<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}>
|
<Button variant='outline' color='ut-blue' icon={Reviews} onClick={handleOpenRateMyProf}>
|
||||||
RateMyProf
|
RateMyProf
|
||||||
</Button>
|
</Button>
|
||||||
@@ -150,7 +150,7 @@ const HeadingAndActions: React.FC<HeadingAndActionProps> = ({ course, onClose, a
|
|||||||
{!courseAdded ? 'Add Course' : 'Remove Course'}
|
{!courseAdded ? 'Add Course' : 'Remove Course'}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<Divider />
|
{/* <Divider /> */}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const messenger = createMessenger<MyMessages>('background');
|
|||||||
export async function openTabFromContentScript(url: string) {
|
export async function openTabFromContentScript(url: string) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
messenger
|
messenger
|
||||||
.openNewTab({ url })
|
.openNewTab()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log('New tab opened with URL:', url);
|
console.log('New tab opened with URL:', url);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user