fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, {
|
||||
Children,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useMemo,
|
||||
@@ -432,13 +433,7 @@ const DocumentViewerPanel: React.FC<DocumentViewerPanelProps> = ({
|
||||
const headerLeadingButtons = isSidebarVariant
|
||||
? [collapseButton, maximizeButton].filter(Boolean)
|
||||
: [sidebarToggle, closeButton].filter(Boolean);
|
||||
const headerLeadingContent = headerLeadingButtons.length
|
||||
? (
|
||||
<>
|
||||
{headerLeadingButtons}
|
||||
</>
|
||||
)
|
||||
: null;
|
||||
const headerLeadingContent = headerLeadingButtons.length ? Children.toArray(headerLeadingButtons) : null;
|
||||
|
||||
const resizeHandle = isSidebarVariant ? (
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user