mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 06:34:24 +01:00
chore: remove unused refresh button from highlights panel header
This commit is contained in:
@@ -125,8 +125,6 @@ export const HighlightsPanel: React.FC<HighlightsPanelProps> = ({
|
|||||||
onToggleHighlights={handleToggleHighlights}
|
onToggleHighlights={handleToggleHighlights}
|
||||||
onToggleCollapse={onToggleCollapse}
|
onToggleCollapse={onToggleCollapse}
|
||||||
onHighlightVisibilityChange={onHighlightVisibilityChange}
|
onHighlightVisibilityChange={onHighlightVisibilityChange}
|
||||||
onRefresh={onRefresh}
|
|
||||||
isLoading={loading}
|
|
||||||
isMobile={isMobile}
|
isMobile={isMobile}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { faChevronRight, faEye, faEyeSlash, faUser, faUserGroup, faNetworkWired, faArrowsRotate } from '@fortawesome/free-solid-svg-icons'
|
import { faChevronRight, faEye, faEyeSlash, faUser, faUserGroup, faNetworkWired } from '@fortawesome/free-solid-svg-icons'
|
||||||
import { HighlightVisibility } from '../HighlightsPanel'
|
import { HighlightVisibility } from '../HighlightsPanel'
|
||||||
import IconButton from '../IconButton'
|
import IconButton from '../IconButton'
|
||||||
|
|
||||||
@@ -12,8 +12,6 @@ interface HighlightsPanelHeaderProps {
|
|||||||
onToggleHighlights: () => void
|
onToggleHighlights: () => void
|
||||||
onToggleCollapse: () => void
|
onToggleCollapse: () => void
|
||||||
onHighlightVisibilityChange?: (visibility: HighlightVisibility) => void
|
onHighlightVisibilityChange?: (visibility: HighlightVisibility) => void
|
||||||
onRefresh?: () => void
|
|
||||||
isLoading?: boolean
|
|
||||||
isMobile?: boolean
|
isMobile?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,8 +23,6 @@ const HighlightsPanelHeader: React.FC<HighlightsPanelHeaderProps> = ({
|
|||||||
onToggleHighlights,
|
onToggleHighlights,
|
||||||
onToggleCollapse,
|
onToggleCollapse,
|
||||||
onHighlightVisibilityChange,
|
onHighlightVisibilityChange,
|
||||||
onRefresh,
|
|
||||||
isLoading = false,
|
|
||||||
isMobile = false
|
isMobile = false
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
@@ -95,17 +91,6 @@ const HighlightsPanelHeader: React.FC<HighlightsPanelHeaderProps> = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="highlights-actions-right">
|
<div className="highlights-actions-right">
|
||||||
{onRefresh && (
|
|
||||||
<IconButton
|
|
||||||
icon={faArrowsRotate}
|
|
||||||
onClick={onRefresh}
|
|
||||||
title="Refresh highlights"
|
|
||||||
ariaLabel="Refresh highlights"
|
|
||||||
variant="ghost"
|
|
||||||
disabled={isLoading}
|
|
||||||
spin={isLoading}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
{hasHighlights && (
|
{hasHighlights && (
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={showHighlights ? faEye : faEyeSlash}
|
icon={showHighlights ? faEye : faEyeSlash}
|
||||||
|
|||||||
Reference in New Issue
Block a user