Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modified loader functionality #8

Closed
wants to merge 2 commits into from
Closed

chore: modified loader functionality #8

wants to merge 2 commits into from

Conversation

tusharmaharana
Copy link

modified the loader functionality and added a button loader
#7

@tusharmaharana
Copy link
Author

WhatUp

@msk4862 msk4862 self-requested a review October 5, 2020 17:17
@@ -0,0 +1,16 @@
import React, { useEffect, useState } from "react";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't create an another component for just overlay, try to do it in Loader component iteself.

frontend/src/components/Posts/Post.js Show resolved Hide resolved
@@ -26,7 +26,9 @@ const BlogShow = (props) => {
}, []);

useEffect(() => {
props.fetchPost(props.match.params.id);
if (!Object.keys(props.data.post).length) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in previous comment, this will not be needed now.

@tusharmaharana tusharmaharana deleted the chore/modified-loader branch October 7, 2020 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants