Skip to content

Commit

Permalink
fix(www): Containter component may have class: 'undefined'. (#9537)
Browse files Browse the repository at this point in the history
Set `className` default value to be an empty string, so `undefined` won't appear in HTML code if `className` isn't passed in props.
  • Loading branch information
emtei authored and pieh committed Oct 30, 2018
1 parent c62556e commit 795988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/components/container.js
Expand Up @@ -5,7 +5,7 @@ import { rhythm, options } from "../utils/typography"

const Container = ({
children,
className,
className = "",
hasSideBar = true,
overrideCSS = {},
}) => (
Expand Down

0 comments on commit 795988b

Please sign in to comment.