Skip to content

Commit

Permalink
Fix styles error in Home.css and deprecation warnings (#1726)
Browse files Browse the repository at this point in the history
* Fix styles error in Home.css

* Fix deprecation warnings
  • Loading branch information
kutaloweb authored and piglovesyou committed May 28, 2019
1 parent 140bd51 commit d0c3341
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import deepForceUpdate from 'react-deep-force-update';
import queryString from 'query-string';
import { createPath } from 'history/PathUtils';
import { createPath } from 'history';
import App from './components/App';
import createFetch from './createFetch';
import history from './history';
Expand Down
2 changes: 1 addition & 1 deletion src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* LICENSE.txt file in the root directory of this source tree.
*/

import createBrowserHistory from 'history/createBrowserHistory';
import { createBrowserHistory } from 'history';

// Navigation manager, e.g. history.push('/home')
// https://github.com/mjackson/history
Expand Down
34 changes: 16 additions & 18 deletions src/routes/home/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,20 @@
font-size: 1.5rem;
}

.newsDesc {
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 1.125rem;
}

pre {
white-space: pre-wrap;
font-size: 0.875rem;
}

img {
max-width: 100%;
}
.newsDesc h1,
.newsDesc h2,
.newsDesc h3,
.newsDesc h4,
.newsDesc h5,
.newsDesc h6 {
font-size: 1.125rem;
}

.newsDesc pre {
white-space: pre-wrap;
font-size: 0.875rem;
}

.newsDesc img {
max-width: 100%;
}

0 comments on commit d0c3341

Please sign in to comment.