react-typography
Advanced tools
Comparing version 0.16.19 to 0.16.20
{ | ||
"name": "react-typography", | ||
"description": "Helpful React components for Typography.js", | ||
"version": "0.16.19", | ||
"version": "0.16.20", | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0 || ^16.0.0" | ||
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" | ||
}, | ||
@@ -32,4 +32,3 @@ "keywords": [ | ||
"watch": "../../node_modules/.bin/babel -w src --out-dir dist/" | ||
}, | ||
"gitHead": "1a3bfc103d41d59f04e89573c2c87e1d95abdd12" | ||
} | ||
} |
import React from "react" | ||
import PropTypes from "prop-types" | ||
const GoogleFont = props => { | ||
const GoogleFont = (props) => { | ||
// Create family + styles string | ||
let fontsStr = "" | ||
if (props.typography.options.googleFonts) { | ||
const fonts = props.typography.options.googleFonts.map(font => { | ||
const fonts = props.typography.options.googleFonts.map((font) => { | ||
let str = "" | ||
@@ -10,0 +10,0 @@ str += font.name.split(" ").join("+") |
import React from "react" | ||
import PropTypes from "prop-types" | ||
const TypographyStyle = props => ( | ||
const TypographyStyle = (props) => ( | ||
<style | ||
@@ -6,0 +6,0 @@ id={"typography.js"} |
4470
7