mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
fix: replace any types with proper type-safe inert attribute handling
This commit is contained in:
@@ -321,7 +321,7 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
|
|||||||
<div
|
<div
|
||||||
ref={sidebarRef}
|
ref={sidebarRef}
|
||||||
className={`pane sidebar ${isMobile && props.isSidebarOpen ? 'mobile-open' : ''}`}
|
className={`pane sidebar ${isMobile && props.isSidebarOpen ? 'mobile-open' : ''}`}
|
||||||
inert={isMobile && !props.isSidebarOpen ? ('' as any) : undefined}
|
{...(isMobile && !props.isSidebarOpen ? { inert: '' } : {})}
|
||||||
>
|
>
|
||||||
<BookmarkList
|
<BookmarkList
|
||||||
bookmarks={props.bookmarks}
|
bookmarks={props.bookmarks}
|
||||||
@@ -413,7 +413,7 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
|
|||||||
<div
|
<div
|
||||||
ref={highlightsRef}
|
ref={highlightsRef}
|
||||||
className={`pane highlights ${isMobile && !props.isHighlightsCollapsed ? 'mobile-open' : ''}`}
|
className={`pane highlights ${isMobile && !props.isHighlightsCollapsed ? 'mobile-open' : ''}`}
|
||||||
inert={isMobile && props.isHighlightsCollapsed ? ('' as any) : undefined}
|
{...(isMobile && props.isHighlightsCollapsed ? { inert: '' } : {})}
|
||||||
>
|
>
|
||||||
<HighlightsPanel
|
<HighlightsPanel
|
||||||
highlights={props.highlights}
|
highlights={props.highlights}
|
||||||
|
|||||||
Reference in New Issue
Block a user