Skip to content

Commit

Permalink
Merge pull request #31 from kadirahq/use-helmet
Browse files Browse the repository at this point in the history
Use helmet for basic head usage.
  • Loading branch information
arunoda authored Aug 31, 2016
2 parents 72cfdc0 + 110b120 commit 6dc96ce
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/Docs/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import Helmet from 'react-helmet';
import Header from '../Homepage/Header';
import Container from './Container';
import Footer from '../Homepage/Footer';
Expand All @@ -7,8 +8,12 @@ import './style.css';
class Docs extends React.Component {
render() {
const { sections, selectedItem, selectedSectionId, selectedItemId } = this.props;
const headTitle = `${selectedItem.title} - React Storybook Docs`;
return (
<div className="container">
<Helmet
title={headTitle}
/>
<Header currentSection="docs"/>
<Container
sections={ sections }
Expand Down
15 changes: 15 additions & 0 deletions src/components/Homepage/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import Helmet from 'react-helmet';
import './style.css';
import Header from './Header';
import Heading from './Heading';
Expand Down Expand Up @@ -37,8 +38,22 @@ const featuredStorybooks = [
},
];

const META = [
{
name: "description",
content: `
React Storybook is a UI development environment for your React components.
With it, you can visualize different states of your UI components and develop them interactively.
`
}
];

const Homepage = () => (
<div className="container">
<Helmet
title="Storybook - UI dev environment you'll love to use"
meta={META}
/>
<Header currentSection="home"/>
<Heading />
<Demo />
Expand Down
2 changes: 1 addition & 1 deletion src/docs/addons/introduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const images = {

export default {
id: "introduction",
title: "Introduction",
title: "Intro to Addons",
content: stripIndent`
By default, Storybook comes with a way to list stories and visualize them. Addons implement extra features for Storybooks to make them more useful.
Expand Down

0 comments on commit 6dc96ce

Please sign in to comment.