Improve tests

This commit is contained in:
Charles Bochet
2023-10-24 17:13:50 +02:00
parent d58b85df54
commit 48c9ea855a
3 changed files with 8 additions and 5 deletions

View File

@ -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}

View File

@ -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}