Skip to content

Commit

Permalink
Merge pull request facebook#118 from gaearon/required-title
Browse files Browse the repository at this point in the history
Add missing Button titles
  • Loading branch information
bvaughn authored Apr 10, 2019
2 parents 98240f1 + 75a4312 commit ba46f2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/devtools/views/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import styles from './Button.css';

type Props = {
className?: string,
title: string,
};

export default function Button({ className, ...rest }: Props) {
Expand Down
2 changes: 1 addition & 1 deletion src/devtools/views/Components/HooksTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/devtools/views/Components/InspectedElementTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)}
Expand Down
2 changes: 2 additions & 0 deletions src/devtools/views/Profiler/SnapshotSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -159,6 +160,7 @@ export default function SnapshotSelector(_: Props) {
selectedFilteredCommitIndex >= numFilteredCommits - 1
}
onClick={viewNextCommit}
title="Select next commit"
>
<ButtonIcon type="next" />
</Button>
Expand Down

0 comments on commit ba46f2d

Please sign in to comment.