-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor/update settings page #124
Conversation
use currentUserId to retrive tenants only for current userbackoffice/src/context/TenantsContext.tsx Lines 40 to 45 in 514ca02
This comment was generated by todo based on a
|
handle errorsbackoffice/src/context/TenantsContext.tsx Lines 45 to 50 in 514ca02
This comment was generated by todo based on a
|
This pull request introduces 6 alerts when merging 6128ce3 into d161548 - view on LGTM.com new alerts:
|
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.
Consider using less type-casting. I think we should try to remove the amount of as XXXX
to use a function, this way we have one place to do type-casting.
.eslintrc.json
Outdated
}, | ||
"parser": "@typescript-eslint/parser" | ||
} | ||
{ |
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.
What is happening in this? 🤷♂️
src/App.tsx
Outdated
@@ -6,6 +6,7 @@ import { theme, Skeleton } from '@tabetalt/kit'; | |||
import { getRoutes } from './routing'; | |||
import gqlClient from './api/client'; | |||
import { useAuth } from './context/AuthContext'; | |||
import { TenantsProvider } from './context/TenantsContext'; |
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.
We probably want to use singular naming tenants
→ tenant
src/context/TenantsContext.tsx
Outdated
updateRequired: () => { | ||
// Dummy function | ||
}, |
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.
What the intention with this?
src/helpers/index.ts
Outdated
vatRateObject: DineroObject, | ||
price: string | ||
): string => { | ||
const dineroPrice = Dinero(moneyFromString(price) as DineroObject); |
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.
This looks a bit wordy. Maybe we should make a function like mentioned above? dineroFromMoney
or something? 🤷♂️
@@ -37,7 +37,6 @@ const ProductCreate: React.FC = () => { | |||
}; | |||
|
|||
if (values.categories) { | |||
console.log(values.categories); |
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.
Nice catch!
Should probably fix these before merging too. 👍 |
This pull request introduces 6 alerts when merging d42ecd8 into d161548 - view on LGTM.com new alerts:
|
Co-authored-by: Simen A. W. Olsen <cobraz@cobraz.no>
This pull request introduces 7 alerts when merging 5c3be80 into d161548 - view on LGTM.com new alerts:
|
Co-authored-by: Simen A. W. Olsen <cobraz@cobraz.no>
This pull request introduces 7 alerts when merging 25ff5c8 into d161548 - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 967d443 into d161548 - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 4ca0875 into d161548 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 1424b2f into d161548 - view on LGTM.com new alerts:
|
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.
👍
Related issues:
#121
#120
#104