From cc1ca7f645daf7d84df08138078cecb35b5ad320 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 5 Apr 2017 16:53:24 -0400 Subject: [PATCH] Tweaking style a bit --- .eslintrc | 2 +- app/app.html | 13 +------------ app/components/Home.js | 8 ++------ app/containers/Root.js | 7 +------ 4 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7f8fc0d..49f1729 100644 --- a/.eslintrc +++ b/.eslintrc @@ -23,7 +23,7 @@ "react/sort-comp": ["error", { "order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"] }], - "react/jsx-no-bind": "off", + "react/prop-types": "off", "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }], "react/prefer-stateless-function": "off" }, diff --git a/app/app.html b/app/app.html index d3eb80e..5241806 100644 --- a/app/app.html +++ b/app/app.html @@ -1,20 +1,9 @@ - + Hello Electron React! -
diff --git a/app/components/Home.js b/app/components/Home.js index 94a6549..bad84f0 100644 --- a/app/components/Home.js +++ b/app/components/Home.js @@ -1,15 +1,11 @@ import React, { Component } from 'react'; -// import { Link } from 'react-router'; -import styles from './Home.css'; export default class Home extends Component { render() { return (
-
-

Home

-

...is where the heart is

-
+

Home

+

...is where the heart is

); } diff --git a/app/containers/Root.js b/app/containers/Root.js index b4fb2b8..29d8fe7 100644 --- a/app/containers/Root.js +++ b/app/containers/Root.js @@ -3,12 +3,7 @@ import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from '../routes'; -type RootType = { - store: {}, - history: {} -}; - -export default function Root({ store, history }: RootType) { +export default function Root({ store, history }) { return (