mirror of
https://github.com/desktop/desktop
synced 2024-09-13 21:31:32 +00:00
Put diffCheck in it's own file
Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
This commit is contained in:
parent
0bb2627daf
commit
3d3bbe7591
|
@ -18,6 +18,7 @@ import { PopoverAnchorPosition } from '../lib/popover'
|
|||
import { WhitespaceHintPopover } from './whitespace-hint-popover'
|
||||
import { TooltipDirection } from '../lib/tooltip'
|
||||
import { Button } from '../lib/button'
|
||||
import { diffCheck } from '../octicons/diff-check'
|
||||
|
||||
enum DiffRowPrefix {
|
||||
Added = '+',
|
||||
|
@ -571,7 +572,7 @@ export class SideBySideDiffRow extends React.Component<
|
|||
|
||||
return (
|
||||
<div className="line-number-check">
|
||||
{isSelected ? <Octicon symbol={OcticonSymbol.diffCheck} /> : null}
|
||||
{isSelected ? <Octicon symbol={diffCheck} /> : null}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
12
app/src/ui/octicons/diff-check.ts
Normal file
12
app/src/ui/octicons/diff-check.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { OcticonSymbolType } from './octicons.generated'
|
||||
|
||||
/**
|
||||
* An check mark produced by Gavin that is scaled for 12x12 as opposed to the
|
||||
* regular 16x16 and is thicker for better visibility.
|
||||
*/
|
||||
export const diffCheck: OcticonSymbolType = {
|
||||
w: 12,
|
||||
h: 12,
|
||||
d: 'M10.5303 2.96967C10.8232 3.26256 10.8232 3.73744 10.5303 4.03033L5.03033 9.53033C4.73744 9.82322 4.26256 9.82322 3.96967 9.53033L1.46967 7.03033C1.17678 6.73744 1.17678 6.26256 1.46967 5.96967C1.76256 5.67678 2.23744 5.67678 2.53033 5.96967L4.5 7.93934L9.46967 2.96967C9.76256 2.67678 10.2374 2.67678 10.5303 2.96967Z',
|
||||
fr: 'evenodd',
|
||||
}
|
|
@ -199,13 +199,6 @@ export const check: OcticonSymbolType = {
|
|||
fr: 'evenodd',
|
||||
}
|
||||
|
||||
export const diffCheck: OcticonSymbolType = {
|
||||
w: 12,
|
||||
h: 12,
|
||||
d: 'M10.5303 2.96967C10.8232 3.26256 10.8232 3.73744 10.5303 4.03033L5.03033 9.53033C4.73744 9.82322 4.26256 9.82322 3.96967 9.53033L1.46967 7.03033C1.17678 6.73744 1.17678 6.26256 1.46967 5.96967C1.76256 5.67678 2.23744 5.67678 2.53033 5.96967L4.5 7.93934L9.46967 2.96967C9.76256 2.67678 10.2374 2.67678 10.5303 2.96967Z',
|
||||
fr: 'evenodd',
|
||||
}
|
||||
|
||||
export const checkCircle: OcticonSymbolType = {
|
||||
w: 16,
|
||||
h: 16,
|
||||
|
|
Loading…
Reference in a new issue