mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
fix: resolve TypeScript errors for mobile implementation
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user