Skip to content

refector all code and improve some UI#4

Open
hyderly wants to merge 1 commit intoashutosh1919:masterfrom
hyderly:master
Open

refector all code and improve some UI#4
hyderly wants to merge 1 commit intoashutosh1919:masterfrom
hyderly:master

Conversation

@hyderly
Copy link
Copy Markdown

@hyderly hyderly commented Jun 20, 2020

I hope I will contribute more in the future.

@ashutosh1919
Copy link
Copy Markdown
Owner

Auto formatting the code is required. I am working on it. Because of auto-prettifying the code, the code has so many changes in this PR.

Copy link
Copy Markdown

@bikkimahato bikkimahato left a comment

Choose a reason for hiding this comment

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

A lot of code format changes are there.

Comment thread src/App.js
Comment on lines +29 to +48
<Main onToggle={toggleTheme} theme={theme} />
</>
</ThemeProvider>
// <div className="App">
// <header className="App-header">
// <img src={logo} className="App-logo" alt="logo" />
// <p>
// Edit <code>src/App.js</code> and save to reload.
// </p>
// <a
// className="App-link"
// href="https://reactjs.org"
// target="_blank"
// rel="noopener noreferrer"
// >
// Learn React
// </a>
// </header>
// </div>
);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Commented code should not be pushed.

Comment thread src/components/Posts.js
Comment on lines +19 to +22
if (props.from === "tech") return <TechList />;
else if (props.from === "design") return <DesignList />;
else if (props.from === "motivation") return <MotivationList />;
else if (props.from === "selfbranding") return <SelfBrandingList />;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Better way of doing this would be use of switch case.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@bikkimahato , Thanks for suggestions. Feel free to raise PR to resolve these issues.

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.

3 participants