https://supertokens.com/ logo
b

Binouse

07/26/2022, 9:38 AM
Hello ! I'm using embeded form in React, do you know if I can pass custom props that I can get in my Overrides ?
r

rp

07/26/2022, 10:28 AM
hey @Binouse
yea the embedded components should accept a
userContext
prop which would then be available in the function overrides.
b

Binouse

07/26/2022, 10:35 AM
Thanks for your answer, but I meant "in my components Overrides"
r

rp

07/26/2022, 10:36 AM
oh right. I see.
give me a min
And you can import that hook using:
Copy code
import {useUserContext} from "supertokens-auth-react";
b

Binouse

07/26/2022, 12:22 PM
Thank you 🙏
r

rp

07/26/2022, 12:23 PM
Lmk if this doesn't work or if you run into other issues 🙂
b

Binouse

07/26/2022, 1:14 PM
Is there a way to override or at least edit the "CONTINUE" button from the passwordless email form ? I'm sure there is a way but I can't find it 😕
r

rp

07/26/2022, 1:20 PM
Do you want to change the text? Or the theme?
for text, checkout translation section -> you can change the button copy For theme, checkout styling section
b

Binouse

07/26/2022, 1:20 PM
I managed to override everything from the ThirdPartyProvidersForm thanks to the
buttonComponent
prop. Is there something similar for the
PasswordlessEmailForm_Override
?
Oh okay that should be perfect
Thanks again 🙂
r

rp

07/26/2022, 1:21 PM
ok great! so did that resolve your issues?
b

Binouse

07/26/2022, 1:21 PM
Yes translation should be fine
r

rp

07/26/2022, 1:21 PM
nice
2 Views