Closed kamakshidasan closed 2 years ago
@saifulkhan thanks for your comment. I seem to have fixed most of the issues.
The current check seems to fail on yarn-deduplicate --fail --list --strategy=fewer
Can you please advice what to do?
Not 100% sure, but review the changes in yarn.lock file, each change should make sense, and remove any duplicate / package entry.
I see the React files are well organised under emsemble folder. Other more global changes look reasonable as well. So, probably no crashes will happen :). I don't think it's necessary for me to check details in each React file. After the lint is fixed, I'm happy to merge.
Hi @kamakshidasan, Phong and I reviewed your PR.
You need to fix the error, which is due to the change in yarn.lock file as you added a package named styled component. You can run npx yarn-deduplicate --fail --list --strategy=fewer
to check. We don't know how to fix this. Probably you can message Alex.
Could you please explain the change in the file .eslistrc
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true,
"allowedNames": ["_this"]
}
]
We do not have any comments. If you address the above comments we shall merge your code.
Thanks for reviewing my code.
The second point refers to this line: https://github.com/ScottishCovidResponse/rampvis-ui/blob/feature-ensemble-nextjs/src/components/ensemble/controller.js#L97
I need to access "this" inside another one where scope is not present
@kamakshidasan you could consider using arrow function. I think it doesn't its own this
and you can still access to the outside this
. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions.
Regarding the first point, please do some research and contact Alex for help as he is an expert in React/JS.
Thanks, @kamakshidasan for creating the pull request. I checked it quickly and please find my comments below.
yarn build
to check if this command passes.Hi @phongvis, I can help you with reviewing the code, whenever you are free in the evenings.