-
Notifications
You must be signed in to change notification settings - Fork 3
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
DASH-130 Add Admin Partner profile creation page #833
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 comments
client/src/pages/AdminPartnersListPage/components/updatePartner/PartnerFormComponent.tsx
Outdated
Show resolved
Hide resolved
client/src/pages/AdminPartnersListPage/components/updatePartner/PartnerFormComponent.tsx
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,30 @@ | |||
import { AnyObject, RefProfile } from '../../../../types'; | |||
|
|||
export const validate = (values: RefProfile): AnyObject => { |
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.
Could you use '@lemoncode/fonk'
validation here?
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.
I can’t find a way how to validate list of domains, so I used custom validation 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.
Check one more comment
|
||
const onSetDefaultDomain = useCallback( | ||
(domain: string) => { | ||
// Nested field doesn't recognize correctly |
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.
Do we need this comment?
No description provided.