Improve tests
This commit is contained in:
@ -60,7 +60,7 @@ export const Favorites = () => {
|
||||
draggableItems={
|
||||
<>
|
||||
{favorites.map((favorite, index) => {
|
||||
const { id, person, company, position } = favorite;
|
||||
const { id, person, company } = favorite;
|
||||
return (
|
||||
<DraggableItem
|
||||
key={id}
|
||||
@ -68,7 +68,6 @@ export const Favorites = () => {
|
||||
index={index}
|
||||
itemComponent={
|
||||
<>
|
||||
{position}
|
||||
{person && (
|
||||
<NavItem
|
||||
key={id}
|
||||
|
||||
@ -53,7 +53,6 @@ export const Dropdown = ({
|
||||
const { isDropdownOpen, toggleDropdown, closeDropdown, dropdownWidth } =
|
||||
useDropdown();
|
||||
|
||||
const dropdownWidthState = dropdownMenuWidth ?? dropdownWidth;
|
||||
const offsetMiddlewares = [];
|
||||
if (dropdownOffset.x) {
|
||||
offsetMiddlewares.push(offset({ crossAxis: dropdownOffset.x }));
|
||||
@ -112,7 +111,7 @@ export const Dropdown = ({
|
||||
)}
|
||||
{isDropdownOpen && (
|
||||
<DropdownMenu
|
||||
width={dropdownWidthState}
|
||||
width={dropdownMenuWidth ?? dropdownWidth}
|
||||
data-select-disable
|
||||
ref={refs.setFloating}
|
||||
style={floatingStyles}
|
||||
|
||||
Reference in New Issue
Block a user