Skip to content

Commit 6db3ab4

Browse files
committed
Update Helmet package and SEO
1 parent cc38748 commit 6db3ab4

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

uilib-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prop-types": "^15.7.2",
2323
"react": "^16.8.4",
2424
"react-dom": "^16.8.4",
25-
"react-helmet": "^5.2.0"
25+
"react-helmet": "^6.0.0"
2626
},
2727
"devDependencies": {
2828
"prettier": "^1.16.4"

uilib-docs/src/components/layout.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ import './layout.scss';
99
const Layout = ({children, showSidebar}) => {
1010
return (
1111
<div className="layout">
12-
<Helmet
13-
title="RNUILIB"
14-
meta={[
15-
{name: 'description', content: 'React Native UI Library'},
16-
{name: 'keywords', content: 'react native, uilib'}
17-
]}
18-
/>
19-
<Header/>
12+
<Helmet>
13+
<meta charSet="utf-8" />
14+
<title>RNUILib</title>
15+
<meta name="description" content="React Native UI Toolset and Components Library"></meta>
16+
<link rel="canonical" href="https://wix.github.io/react-native-ui-lib/" />
17+
</Helmet>
18+
<Header />
2019
{/* <div className={`main ${!showSidebar ? 'fill' : ''}`}> */}
2120
<div className={`main`}>
22-
{showSidebar && <Navbar/>}
23-
<div className={`content ${showSidebar ? 'with-navbar' : ''}`}>{children}</div>
21+
{showSidebar && <Navbar />}
22+
<div className={`content ${showSidebar ? 'with-navbar' : ''}`}>
23+
{children}
24+
</div>
2425
</div>
2526
</div>
2627
);

0 commit comments

Comments
 (0)