mirror of
https://github.com/dergigi/boris.git
synced 2026-01-02 14:34:25 +01:00
fix: correct TypeScript types in Debug component
Fixed type error in Debug.tsx:
- Changed highlightVisibility from string to proper HighlightVisibility object
- Used 'support' prop instead of invalid 'children' prop for ThreePaneLayout
- Set showSupport={true} to properly render debug content
All linting and type checks now pass.
This commit is contained in:
@@ -711,6 +711,7 @@ const Debug: React.FC<DebugProps> = ({
|
||||
isHighlightsCollapsed={true}
|
||||
isSidebarOpen={false}
|
||||
showSettings={false}
|
||||
showSupport={true}
|
||||
bookmarks={bookmarks}
|
||||
bookmarksLoading={bookmarksLoading}
|
||||
viewMode={viewMode}
|
||||
@@ -732,7 +733,7 @@ const Debug: React.FC<DebugProps> = ({
|
||||
classifiedHighlights={[]}
|
||||
showHighlights={false}
|
||||
selectedHighlightId={undefined}
|
||||
highlightVisibility="all"
|
||||
highlightVisibility={{ nostrverse: true, friends: true, mine: true }}
|
||||
onHighlightClick={() => {}}
|
||||
onTextSelection={() => {}}
|
||||
onClearSelection={() => {}}
|
||||
@@ -753,9 +754,8 @@ const Debug: React.FC<DebugProps> = ({
|
||||
toastMessage={undefined}
|
||||
toastType={undefined}
|
||||
onClearToast={() => {}}
|
||||
>
|
||||
{debugContent}
|
||||
</ThreePaneLayout>
|
||||
support={debugContent}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user