Tweaking style a bit

This commit is contained in:
Timothy Warren 2017-04-05 16:53:24 -04:00
parent f8d181d01b
commit cc1ca7f645
4 changed files with 5 additions and 25 deletions

View File

@ -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"
},

View File

@ -1,20 +1,9 @@
<!DOCTYPE html>
<html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Hello Electron React!</title>
<link rel="stylesheet" href="./css/photon.min.css" />
<script>
(() => {
if (!process.env.HOT) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = './dist/style.css';
// HACK: Writing the script path should be done with webpack
document.getElementsByTagName('head')[0].appendChild(link);
}
})();
</script>
</head>
<body>
<div id="root"></div>

View File

@ -1,16 +1,12 @@
import React, { Component } from 'react';
// import { Link } from 'react-router';
import styles from './Home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container} data-tid="container">
<h1>Home</h1>
<h3>...is where the heart is</h3>
</div>
</div>
);
}
}

View File

@ -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 (
<Provider store={store}>
<Router key={Math.random()} history={history} routes={routes} />