Skip to content

Commit

Permalink
[desk-tool] disable sparkline hover when change panel is active
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmeow authored and rexxars committed Oct 6, 2020
1 parent e6e162a commit 2b2ffb8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function DocumentSparkline({badges, lastUpdated, editState}: DocumentSpar
const [transitionDirection, setTransitionDirection] = React.useState<'in' | 'out' | ''>('')
const {open: openHistory, historyController, timeline} = useDocumentHistory()
const showingRevision = historyController.onOlderRevision()
const showingChangePanel = historyController.changesPanelActive()
const syncState = useSyncState(timeline?.publishedId)
const isLiveDocument = editState?.liveEdit

Expand Down Expand Up @@ -142,7 +143,7 @@ export function DocumentSparkline({badges, lastUpdated, editState}: DocumentSpar
padding="small"
onClick={openHistory}
type="button"
disabled={showingRevision}
disabled={showingRevision || showingChangePanel}
className={styles.reviewChangesButton}
data-syncing={syncState.isSyncing}
title="Review changes"
Expand Down

0 comments on commit 2b2ffb8

Please sign in to comment.