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

View File

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

View File

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