fix: resolve TypeScript errors for mobile implementation

This commit is contained in:
Gigi
2025-10-10 17:01:57 +01:00
parent ff09a8aba0
commit eef0f971d7
3 changed files with 5 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ interface BookmarkListProps {
relayPool: RelayPool | null
settings?: UserSettings
isMobile?: boolean
isSidebarOpen?: boolean
}
export const BookmarkList: React.FC<BookmarkListProps> = ({
@@ -47,8 +46,7 @@ export const BookmarkList: React.FC<BookmarkListProps> = ({
loading = false,
relayPool,
settings,
isMobile = false,
isSidebarOpen = false
isMobile = false
}) => {
// Helper to check if a bookmark has either content or a URL
const hasContentOrUrl = (ib: IndividualBookmark) => {

View File

@@ -11,6 +11,7 @@ interface IconButtonProps {
size?: number
disabled?: boolean
spin?: boolean
className?: string
}
const IconButton: React.FC<IconButtonProps> = ({
@@ -21,11 +22,12 @@ const IconButton: React.FC<IconButtonProps> = ({
variant = 'ghost',
size = 33,
disabled = false,
spin = false
spin = false,
className = ''
}) => {
return (
<button
className={`icon-button ${variant}`}
className={`icon-button ${variant} ${className}`.trim()}
onClick={onClick}
title={title}
aria-label={ariaLabel || title}

View File

@@ -200,7 +200,6 @@ const ThreePaneLayout: React.FC<ThreePaneLayoutProps> = (props) => {
relayPool={props.relayPool}
settings={props.settings}
isMobile={isMobile}
isSidebarOpen={props.isSidebarOpen}
/>
</div>
<div className="pane main">