https://supertokens.com/ logo
m

Mnove

04/12/2022, 9:50 AM
thanks. for the Submit New Password override, is there a specific Header component to override? like in the Sign In form? Seems I cannot find
n

nkshah2

04/12/2022, 9:54 AM
Lets move the conversation here, can you elaborate on what you mean?
m

Mnove

04/12/2022, 9:58 AM
sure. When I inspect the Sign In form, I find this component (and I successfully modified it). However, when I inspect the the Email Password Reset form, I only find the EmailPasswordSubmitNewPassword_Override. I was wondering if you can override in the same way just the "header" of the Submit new Password form, and not the whole component.
n

nkshah2

04/12/2022, 9:59 AM
Do you mean this part of the submit password form?
m

Mnove

04/12/2022, 10:00 AM
No, the EmailPasswordSubmitNewPassword component
n

nkshah2

04/12/2022, 10:01 AM
Right, so do you want to change the texts it displays or do you want to render a different component entirely?
m

Mnove

04/12/2022, 10:01 AM
I want to render an extra component on top of the text "Change your password"
n

nkshah2

04/12/2022, 10:04 AM
That would work the same way as the example here: https://supertokens.com/docs/emailpassword/advanced-customizations/react-component-override/usage#example (same link i sent earlier) The only difference would be that you would use
EmailPasswordSubmitNewPassword_Override
instead of
EmailPasswordSignIn_Override
Or did you mean you wanted to show it inside the same container?
m

Mnove

04/12/2022, 10:09 AM
yes, the second one. I just need to add an additional component inside the form container (sorry, design specs 😅 ) I have already modified the
EmailPasswordSubmitNewPassword_Override
. I was asking because I was able to do that for the Sign In form.
n

nkshah2

04/12/2022, 10:15 AM
Ah there wouldnt be any direct way of doing that. You could use css to add an element before the first text component though, refer to this page on how to use css with elements in the supertokens form: https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/styling/changing-style
m

Mnove

04/12/2022, 10:17 AM
ah ok! Thanks I will give it try
n

nkshah2

04/12/2022, 10:17 AM
Happy to help