mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #118 from gaearon/required-title
Add missing Button titles
This commit is contained in:
@@ -6,6 +6,7 @@ import styles from './Button.css';
|
||||
|
||||
type Props = {
|
||||
className?: string,
|
||||
title: string,
|
||||
};
|
||||
|
||||
export default function Button({ className, ...rest }: Props) {
|
||||
|
||||
@@ -31,7 +31,7 @@ export function HooksTreeView({ canEditHooks, hooks, id }: HooksTreeViewProps) {
|
||||
<div className={styles.HooksTreeView}>
|
||||
<div className={styles.HeaderRow}>
|
||||
<div className={styles.Header}>hooks</div>
|
||||
<Button onClick={handleCopy}>
|
||||
<Button onClick={handleCopy} title="Copy to clipboard">
|
||||
<ButtonIcon type="copy" />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@ export default function InspectedElementTree({
|
||||
<div className={styles.HeaderRow}>
|
||||
<div className={styles.Header}>{label}</div>
|
||||
{!isEmpty && (
|
||||
<Button onClick={handleCopy}>
|
||||
<Button onClick={handleCopy} title="Copy to clipboard">
|
||||
<ButtonIcon type="copy" />
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -123,6 +123,7 @@ export default function SnapshotSelector(_: Props) {
|
||||
className={styles.Button}
|
||||
disabled={selectedFilteredCommitIndex === 0 || numFilteredCommits === 0}
|
||||
onClick={viewPrevCommit}
|
||||
title="Select previous commit"
|
||||
>
|
||||
<ButtonIcon type="previous" />
|
||||
</Button>
|
||||
@@ -159,6 +160,7 @@ export default function SnapshotSelector(_: Props) {
|
||||
selectedFilteredCommitIndex >= numFilteredCommits - 1
|
||||
}
|
||||
onClick={viewNextCommit}
|
||||
title="Select next commit"
|
||||
>
|
||||
<ButtonIcon type="next" />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user