Use new API from latest typography release

This commit is contained in:
Kyle Mathews 2016-08-03 19:03:43 -06:00
parent 7cb361f81d
commit 728dee0b30

View file

@ -2,7 +2,7 @@ import React from 'react'
import { Link } from 'react-router' import { Link } from 'react-router'
import { Container } from 'react-responsive-grid' import { Container } from 'react-responsive-grid'
import { prefixLink } from 'gatsby-helpers' import { prefixLink } from 'gatsby-helpers'
import { rhythm, fontSizeToMS } from 'utils/typography' import { rhythm, adjustFontSizeToMSValue } from 'utils/typography'
import { config } from 'config' import { config } from 'config'
class Template extends React.Component { class Template extends React.Component {
@ -13,8 +13,7 @@ class Template extends React.Component {
header = ( header = (
<h1 <h1
style={{ style={{
fontSize: fontSizeToMS(1.5).fontSize, ...adjustFontSizeToMSValue(1.5),
lineHeight: fontSizeToMS(1.5).lineHeight,
marginBottom: rhythm(1.5), marginBottom: rhythm(1.5),
marginTop: 0, marginTop: 0,
}} }}