Skip to content

Commit ae0b953

Browse files
committed
Added version drop-down toggle (that I will replace in a moment)
1 parent 597fe25 commit ae0b953

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

src/components/LayoutHeader/Header.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import HeaderLink from './HeaderLink';
1010
import Link from 'gatsby-link';
1111
import React from 'react';
1212
import {colors, fonts, media} from 'theme';
13-
import {version} from 'site-constants';
1413
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg';
1514
import DocSearch from './DocSearch';
15+
import VersionToggler from './VersionToggler';
1616

1717
import logoSvg from 'icons/logo.svg';
1818

@@ -146,27 +146,7 @@ const Header = ({location}: {location: Location}) => (
146146
width: 'calc(100% / 6)',
147147
},
148148
}}>
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 />
170150
<a
171151
css={{
172152
padding: '5px 10px',

0 commit comments

Comments
 (0)