1
1
import React from 'react'
2
2
import { Box , Link } from '@primer/react'
3
- import BorderBox from './border-box'
4
3
import { XIcon , ThreeBarsIcon } from '@primer/octicons-react'
5
4
import { Link as GatsbyLink } from 'gatsby'
6
5
import DarkButton from './dark-button'
@@ -44,7 +43,7 @@ function NavDrawer({location, repositoryUrl}) {
44
43
style = { { overflow : 'auto' , WebkitOverflowScrolling : 'touch' } }
45
44
>
46
45
< Box display = "flex" flexDirection = "column" flex = "1 0 auto" color = "gray.7" bg = "gray.0" >
47
- < BorderBox borderWidth = { 0 } borderRadius = { 0 } borderBottomWidth = { 1 } borderColor = "gray.7" >
46
+ < Box borderStyle = "solid" borderWidth = { 0 } borderRadius = { 0 } borderBottomWidth = { 1 } borderColor = "gray.7" >
48
47
< Box
49
48
display = "flex"
50
49
py = { 3 }
@@ -62,7 +61,7 @@ function NavDrawer({location, repositoryUrl}) {
62
61
< XIcon />
63
62
</ DarkButton >
64
63
</ Box >
65
- </ BorderBox >
64
+ </ Box >
66
65
{ navItems . length > 0 ? (
67
66
< Box display = "flex" flexDirection = "column" >
68
67
< NavItems location = { location } items = { navItems } repositoryUrl = { repositoryUrl } />
@@ -82,7 +81,8 @@ function NavDrawer({location, repositoryUrl}) {
82
81
83
82
function HeaderNavItems ( { items} ) {
84
83
return items . map ( ( item , index ) => (
85
- < BorderBox
84
+ < Box
85
+ borderStyle = "solid"
86
86
key = { item . title }
87
87
borderWidth = { 0 }
88
88
borderRadius = { 0 }
@@ -93,7 +93,7 @@ function HeaderNavItems({items}) {
93
93
< Link key = { index } href = { item . url } sx = { { color : 'inherit' , display : 'block' } } >
94
94
{ item . title }
95
95
</ Link >
96
- </ BorderBox >
96
+ </ Box >
97
97
) )
98
98
}
99
99
0 commit comments