File tree 1 file changed +2
-22
lines changed 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import HeaderLink from './HeaderLink';
10
10
import Link from 'gatsby-link' ;
11
11
import React from 'react' ;
12
12
import { colors , fonts , media } from 'theme' ;
13
- import { version } from 'site-constants' ;
14
13
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg' ;
15
14
import DocSearch from './DocSearch' ;
15
+ import VersionToggler from './VersionToggler' ;
16
16
17
17
import logoSvg from 'icons/logo.svg' ;
18
18
@@ -146,27 +146,7 @@ const Header = ({location}: {location: Location}) => (
146
146
width : 'calc(100% / 6)' ,
147
147
} ,
148
148
} } >
149
- < a
150
- css = { {
151
- padding : '5px 10px' ,
152
- whiteSpace : 'nowrap' ,
153
- ...fonts . small ,
154
-
155
- ':hover' : {
156
- color : colors . brand ,
157
- } ,
158
-
159
- ':focus' : {
160
- outline : 0 ,
161
- backgroundColor : colors . lighter ,
162
- borderRadius : 15 ,
163
- } ,
164
- } }
165
- href = "https://github.com/facebook/react/releases"
166
- target = "_blank"
167
- rel = "noopener" >
168
- v{ version }
169
- </ a >
149
+ < VersionToggler />
170
150
< a
171
151
css = { {
172
152
padding : '5px 10px' ,
You can’t perform that action at this time.
0 commit comments