Skip to content

Commit

Permalink
[desk-tool] Update ChangesPanel's close button
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 094f0c9 commit 92a9cea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

.closeButtonContainer {
padding: 4px;
padding: 0.5em;
}

.versionSelectContainer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable max-depth */
import React, {useCallback} from 'react'
import {ObjectDiff, ObjectSchemaType, DocumentChangeContext, ChangeList} from '@sanity/field/diff'
import CloseIcon from 'part:@sanity/base/close-icon'
import Button from 'part:@sanity/components/buttons/default'
import {useDocumentHistory} from '../documentHistory'

Expand Down Expand Up @@ -37,9 +38,14 @@ export function ChangesPanel({
<div className={styles.mainNav}>
<h2 className={styles.title}>Changes</h2>
<div className={styles.closeButtonContainer}>
<button onClick={closeHistory} type="button">
Close
</button>
<Button
icon={CloseIcon}
kind="simple"
onClick={closeHistory}
padding="small"
title="Hide changes panel"
type="button"
/>
</div>
</div>
<div>
Expand Down

0 comments on commit 92a9cea

Please sign in to comment.