-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added lazyload for postList , remove support for material-ui, removed…
… repeated code
- Loading branch information
1 parent
bb28efc
commit db5a0f9
Showing
14 changed files
with
140 additions
and
338 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import {Link} from 'react-router-dom'; | ||
|
||
const AllTags = ({ tags }) => { | ||
|
||
return tags.map(tag => ( | ||
<Link to={'/tags/'+tag.substring(1,tag.length)}> | ||
<button | ||
className="btn btn-outline-secondary m-2" | ||
style={{fontFamily:"cursive",color:"black",border:"2px solid black"}}> | ||
{ tag } | ||
</button> | ||
</Link>)); | ||
}; | ||
|
||
export default AllTags; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import loadgif from '../image/loading_gif.gif'; | ||
|
||
const height = { | ||
height : "4rem" | ||
}; | ||
|
||
const Loading = () => { | ||
|
||
return <div className="mb-4"> | ||
<img | ||
style={height} | ||
src={ loadgif } | ||
alt="loading gif" /> | ||
</div> | ||
}; | ||
|
||
export default Loading; |
Oops, something went wrong.