Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rickimoore committed Jul 14, 2023
1 parent 893617f commit 8e52dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/components/DropDown/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const DropDown: FC<DropDownProps> = ({
className = '',
position = 'top-full left-0 z-50',
}) => {
const isChildrenArray = Array.isArray(children)

return (
<div
id='dropdown'
Expand All @@ -25,9 +23,7 @@ const DropDown: FC<DropDownProps> = ({
} ${className} ${position} animate-fadeSlideIn bg-white rounded divide-y divide-gray-100 shadow dark:bg-black`}
>
<ul
className={`text-sm max-h-32 overflow-scroll relative text-gray-700 dark:text-gray-200 ${
isChildrenArray && children.length >= 4 ? '' : ''
}`}
className='text-sm max-h-32 overflow-scroll relative text-gray-700 dark:text-gray-200'
aria-labelledby='dropdownDefault'
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/__tests__/useDeviceDiagnostics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jest.mock('../../utilities/formatGigBytes', () => jest.fn())
jest.mock('../useDiagnosticAlerts', () => ({
__esModule: true,
default: jest.fn(() => ({
alerts: [], // Your desired formatted list of alerts
alerts: [],
storeAlert: jest.fn(),
updateAlert: jest.fn(),
dismissAlert: jest.fn(),
Expand Down

0 comments on commit 8e52dde

Please sign in to comment.