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

changed index.jsx class to functional #101

Conversation

rohit-yadavv
Copy link

@rohit-yadavv rohit-yadavv commented Sep 8, 2023

fixes #85
made src/components/index.js from class to functional component
image
Uploading image.png…
Uploading image.png…

@ansulagrawal
Copy link
Member

thanks @rohit-yadavv we will review the code

@ansulagrawal
Copy link
Member

@rohit-yadavv did you tried running the example in local?

@rohit-yadavv
Copy link
Author

rohit-yadavv commented Sep 8, 2023

@ansulagrawal No, i haven't setup project locally i just changed file from class based to functional

@rohit-yadavv
Copy link
Author

@ansulagrawal I will check it locally and will update you soon

class Scheduler extends Component {
constructor(props) {
super(props);
function Scheduler(props) {
Copy link

Choose a reason for hiding this comment

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

Function Scheduler has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Sep 12, 2023

Code Climate has analyzed commit 5b4c6ac and detected 5 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3
Duplication 2

View more on Code Climate.

@ansulagrawal
Copy link
Member

@rohit-yadavv did you check in the local, is it working?

@ansulagrawal ansulagrawal added the good first issue Good for newcomers label Oct 26, 2023
@ansulagrawal
Copy link
Member

@rohit-yadavv I didn't heard from you anyting so I am closing this pr

@ansulagrawal ansulagrawal removed the request for review from DamyanBG November 23, 2023 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make src/components/index.js from class to functional component
3 participants