precious-lavenderP
Refine3y ago
7 replies
precious-lavender

Can't change title of AuthPage

I tried to change my login page title like this:
<AuthPage
type="login"
title={<h2>Welcome to ...</h2>}
formProps={{
initialValues: { email: "demo@refine.dev", password: "demodemo" },
}}
/>

That's how it says to do it in the doc. But, I received this error: TS2322: Type '{ type: "login"; title: Element; formProps: { initialValues: { email: string; password: string; }; }; }' is not assignable to type 'IntrinsicAttributes & AuthProps'.
Property 'title' does not exist on type 'IntrinsicAttributes & { type?: "login" | undefined; providers?: OAuthProvider[] | undefined; loginLink?: ReactNode; registerLink?: ReactNode; forgotPasswordLink?: ReactNode; rememberMe?: ReactNode; } & { ...; } & { ...; }'.

Is it normal?
Was this page helpful?