From 47d7f3778be663970eed3bfaae9237269b9ecdd5 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 8 Jul 2016 12:36:43 -0700 Subject: [PATCH] Fixed inconsistent quote usage. --- react-flexr/react-flexr-tests.tsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/react-flexr/react-flexr-tests.tsx b/react-flexr/react-flexr-tests.tsx index f35a849512..3d7c155386 100644 --- a/react-flexr/react-flexr-tests.tsx +++ b/react-flexr/react-flexr-tests.tsx @@ -1,9 +1,9 @@ /// /// -import * as React from 'react'; +import * as React from "react"; import * as ReactDOMServer from "react-dom/server"; -import { Grid, Cell, findMatch, setBreakpoints, findBreakpoints, getCurrentBreakpoints, optimizedResize, palm, lap, portable, desk } from 'react-flexr'; +import { Grid, Cell, findMatch, setBreakpoints, findBreakpoints, getCurrentBreakpoints, optimizedResize, palm, lap, portable, desk } from "react-flexr"; class Example extends React.Component { render() { @@ -21,7 +21,7 @@ class Example2 extends React.Component { render() { return ( - + Fills Half @@ -37,15 +37,15 @@ class Example2 extends React.Component { Fills a quarter on lap and half everywhere else - + Fills a quarter - + Fills a quarter on palm (mobile), half on lap and dynamicly sized everywhere else - + Hidden on palm, half width otherwise @@ -55,9 +55,9 @@ class Example2 extends React.Component { class App1 extends React.Component { render() { - const isPalm = findMatch('palm'); + const isPalm = findMatch("palm"); - if (isPalm) console.log( 'only logged in palm' ); + if (isPalm) console.log( "only logged in palm" ); return (
@@ -67,7 +67,7 @@ class App1 extends React.Component { : null }

Allows Multiple Matches

- { findMatch('desk', 'lap') + { findMatch("desk", "lap") ?

Lap or Desk

: null }
@@ -77,15 +77,15 @@ class App1 extends React.Component { const isMobile = /iP(hone|od)|Mobile/; function textFxn(req: any, res: any): void { - if ( isMobile.test( req.headers['user-agent'] ) ) { - setBreakpoints(['palm', 'portable']) + if ( isMobile.test( req.headers["user-agent"] ) ) { + setBreakpoints(["palm", "portable"]) } else { - setBreakpoints(['desk']) + setBreakpoints(["desk"]) } const html = ReactDOMServer.renderToString( ); - res.send( '' + html ); + res.send( "" + html ); } const breakpoints: string[] | boolean = findBreakpoints(); @@ -94,7 +94,7 @@ class App2 extends React.Component { componentDidMount() { optimizedResize.init( () => { if ( findBreakpoints() ) { - console.log('New Breakpoints'); + console.log("New Breakpoints"); this.forceUpdate(); } });