Tweaking style a bit
This commit is contained in:
parent
f8d181d01b
commit
cc1ca7f645
@ -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"
|
||||
},
|
||||
|
13
app/app.html
13
app/app.html
@ -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>
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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} />
|
||||
|
Reference in New Issue
Block a user