Skip to content

Commit 281373a

Browse files
committed
Add missing "+" icon to "New worktree" button
1 parent 5e228fd commit 281373a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/ui/worktrees/worktree-list.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { WorktreeListItem } from './worktree-list-item'
77
import { Button } from '../lib/button'
88
import { IMatches } from '../../lib/fuzzy-find'
99
import { ClickSource } from '../lib/list'
10+
import { Octicon } from '../octicons'
11+
import * as octicons from '../octicons/octicons.generated'
1012
import memoizeOne from 'memoize-one'
1113

1214
const RowHeight = 30
@@ -99,9 +101,10 @@ export class WorktreeList extends React.Component<IWorktreeListProps> {
99101
}
100102
return (
101103
<Button
102-
className="new-worktree-button"
104+
className="new-worktree-button button-with-icon"
103105
onClick={this.props.onCreateNewWorktree}
104106
>
107+
<Octicon symbol={octicons.plus} className="mr" />
105108
{__DARWIN__ ? 'New Worktree' : 'New worktree'}
106109
</Button>
107110
)

0 commit comments

Comments
 (0)