Skip to content

PR for review#1

Open
Xdev200 wants to merge 41 commits intomainfrom
development
Open

PR for review#1
Xdev200 wants to merge 41 commits intomainfrom
development

Conversation

@Xdev200
Copy link
Copy Markdown
Contributor

@Xdev200 Xdev200 commented Jun 30, 2021

@netlify
Copy link
Copy Markdown

netlify bot commented Jun 30, 2021

✔️ Deploy Preview for nano-notes ready!

🔨 Explore the source changes: c4164e2

🔍 Inspect the deploy log: https://app.netlify.com/sites/nano-notes/deploys/60ff869dedc9fd0008c30039

😎 Browse the preview: https://deploy-preview-1--nano-notes.netlify.app

Copy link
Copy Markdown

@kushanksriraj kushanksriraj left a comment

Choose a reason for hiding this comment

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

Clean code and good files structure.

Comment thread src/hooks/useSearch.js
const { notesState, notesDispatch } = useNotes();
const {baseURL} = useBaseURL()

const search = async (search_string) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Keep your variable names in camelCase: searchString

@@ -0,0 +1,26 @@
export const validate = (values) => {
let errors = { name: "", email: "", password: "", cpassword: "" };
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cpassword is too cryptic, have more descriptive var name like confirmPassword

Comment thread src/styles/note_grid.css
@@ -0,0 +1,71 @@
/*Code Copied From https://codepen.io/tobiasahlin/pen/JVmLRa */
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 to keep CSS file names without underscore, hyphen would be a better choice here.

Comment thread src/hooks/useBaseURL.js
@@ -0,0 +1,11 @@
export const useBaseURL = () => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This custom hook doesn't have a state or calls any other hook, so you can have this as a normal JS function.

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.

2 participants