Skip to content

Commit 57bcba8

Browse files
committed
inlining blog css
1 parent fec1b38 commit 57bcba8

File tree

3 files changed

+4
-24
lines changed

3 files changed

+4
-24
lines changed

reactjsfoundations.com/src/WpBlogSP.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { QueryClient, QueryClientProvider, useQuery } from 'react-query';
22
import { useState, useEffect } from 'react';
3-
import styles from './wp-blog.module.css';
43
import { useParams } from 'react-router-dom';
54

65
export default function ReactBlog(props) {

reactjsfoundations.com/src/WpBlogWidget.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { QueryClient, QueryClientProvider, useQuery } from 'react-query';
22
import { useState } from 'react';
3-
import styles from './wp-blog.module.css';
43
import { Link } from 'react-router-dom';
54

65
const queryClient = new QueryClient();
@@ -48,8 +47,8 @@ function ReactBlog(props) {
4847
return <div>Loading...</div>;
4948
}
5049
return (
51-
<div className={styles.blog__posts}>
52-
<h1 className={styles.blog__title}>{props.title}</h1>
50+
<div className="blog__posts">
51+
<h1 className="blog__title">{props.title}</h1>
5352
<div style={{ textAlign: 'center' }}>
5453
{page > 1 && <button onClick={handlePrevPage}>Newer posts</button>}{' '}
5554
{page + 1 <= totalPages && (
@@ -61,14 +60,14 @@ function ReactBlog(props) {
6160
<h2>
6261
<Link to={`/blog/${post.id}`}>
6362
<section
64-
className={styles.post__title}
63+
className="post__title"
6564
dangerouslySetInnerHTML={{ __html: post.title.rendered }}
6665
/>
6766
</Link>
6867
</h2>
6968

7069
<section
71-
className={styles.post__content}
70+
className="post__content"
7271
dangerouslySetInnerHTML={{ __html: post.excerpt.rendered }}
7372
/>
7473
<p>

reactjsfoundations.com/src/wp-blog.module.css

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)