Skip to content

Commit af37a14

Browse files
committed
fix: update Octicons
1 parent 6583efb commit af37a14

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/components/page-footer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import {Box, Octicon, Avatar, Text} from '@primer/react'
2+
import {Box, Avatar, Text} from '@primer/react'
33
import {Tooltip} from '@primer/react/next'
44
import {PencilIcon} from '@primer/octicons-react'
55
import Link from './link'
@@ -75,7 +75,7 @@ const PageFooter = () => {
7575
<Box sx={{display: 'grid', gap: 4}}>
7676
{editUrl ? (
7777
<Link href={editUrl}>
78-
<Octicon icon={PencilIcon} sx={{mr: 2}} />
78+
<PencilIcon sx={{mr: 2}} />
7979
Edit this page on GitHub
8080
</Link>
8181
) : null}

src/mdx/code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import {Box, Text, Button, Octicon, themeGet} from '@primer/react'
2+
import {Box, Text, Button, themeGet} from '@primer/react'
33
import {Highlight, themes, Prism} from 'prism-react-renderer'
44
import styled from 'styled-components'
55
import {CheckIcon, CopyIcon} from '@primer/octicons-react'
@@ -31,7 +31,7 @@ const ClipboardCopy = ({value, ...props}) => {
3131
announce(`Copied to clipboard`)
3232
}}
3333
>
34-
<Octicon icon={copied ? CheckIcon : CopyIcon} sx={{color: copied ? 'success.fg' : 'fg.muted'}} />
34+
{copied ? <CheckIcon color="success.fg" /> : <CopyIcon color="fg.muted" />}
3535
</Button>
3636
)
3737
}

src/mdx/components.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import {Box, Heading, themeGet, Octicon} from '@primer/react'
2+
import {Box, Heading, themeGet} from '@primer/react'
33
import styled from 'styled-components'
44
import {variant as styledVariant} from 'styled-system'
55
import {LinkIcon} from '@primer/octicons-react'
@@ -43,8 +43,7 @@ const HeaderLink = ({autolink, children, ...props}) =>
4343
autolink ? (
4444
<LinkNoUnderline {...props} sx={{color: 'inherit'}}>
4545
{children}
46-
<Octicon
47-
icon={LinkIcon}
46+
<LinkIcon
4847
className="octicon-link"
4948
sx={{
5049
ml: 2,

0 commit comments

Comments
 (0)