-
Notifications
You must be signed in to change notification settings - Fork 1
feat: re-authorization for google sheet feature added. #54
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check
frontend-dev/src/components/AllIntegrations/GoogleSheet/EditGoogleSheet.jsx
Show resolved
Hide resolved
| sheetConf={sheetConf} | ||
| setSheetConf={setSheetConf} | ||
| step={step} | ||
| setstep={setStep} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it camelCase
frontend-dev/src/components/AllIntegrations/GoogleSheet/EditGoogleSheet.jsx
Outdated
Show resolved
Hide resolved
| if (authData.length === 1 && !isInfo && !isEdit) { | ||
| setSelectedUserId(authData[0].id); | ||
| } else if (!selectedUserId && authData.length > 0 && !isInfo && !isEdit) { | ||
| setSelectedUserId(authData[authData.length - 1].id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate !isInfo && !isEdit from this conditions
frontend-dev/src/components/OneClickRadioComponents/AuthorizationAccountList.jsx
Outdated
Show resolved
Hide resolved
frontend-dev/src/components/AllIntegrations/GoogleSheet/GoogleSheetAuthorization.jsx
Outdated
Show resolved
Hide resolved
frontend-dev/src/components/AllIntegrations/GoogleSheet/GoogleSheetAuthorization.jsx
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
| } | ||
| }, [authData]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add other necessary dependencies here
frontend-dev/src/components/AllIntegrations/GoogleSheet/GoogleSheetAuthorization.jsx
Outdated
Show resolved
Hide resolved
|
|
||
| if (step === 1 && isEdit) { | ||
|
|
||
| const updatedConf = { ...sheetConf } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary spread operation,
Spreading an object creates a shallow copy of that object, which allows you to modify the copy without affecting the original object. This is important when you want to follow immutability principles. In immutability, instead of changing an object's properties directly, you create a new object with the modified values.
No description provided.