File tree Expand file tree Collapse file tree 3 files changed +4
-24
lines changed
reactjsfoundations.com/src Expand file tree Collapse file tree 3 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 1
1
import { QueryClient , QueryClientProvider , useQuery } from 'react-query' ;
2
2
import { useState , useEffect } from 'react' ;
3
- import styles from './wp-blog.module.css' ;
4
3
import { useParams } from 'react-router-dom' ;
5
4
6
5
export default function ReactBlog ( props ) {
Original file line number Diff line number Diff line change 1
1
import { QueryClient , QueryClientProvider , useQuery } from 'react-query' ;
2
2
import { useState } from 'react' ;
3
- import styles from './wp-blog.module.css' ;
4
3
import { Link } from 'react-router-dom' ;
5
4
6
5
const queryClient = new QueryClient ( ) ;
@@ -48,8 +47,8 @@ function ReactBlog(props) {
48
47
return < div > Loading...</ div > ;
49
48
}
50
49
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 >
53
52
< div style = { { textAlign : 'center' } } >
54
53
{ page > 1 && < button onClick = { handlePrevPage } > Newer posts</ button > } { ' ' }
55
54
{ page + 1 <= totalPages && (
@@ -61,14 +60,14 @@ function ReactBlog(props) {
61
60
< h2 >
62
61
< Link to = { `/blog/${ post . id } ` } >
63
62
< section
64
- className = { styles . post__title }
63
+ className = " post__title"
65
64
dangerouslySetInnerHTML = { { __html : post . title . rendered } }
66
65
/>
67
66
</ Link >
68
67
</ h2 >
69
68
70
69
< section
71
- className = { styles . post__content }
70
+ className = " post__content"
72
71
dangerouslySetInnerHTML = { { __html : post . excerpt . rendered } }
73
72
/>
74
73
< p >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments