sunny-green
sunny-green5mo ago

error title

why i follow the Refine AuthPage title to do have the title error of the title={ <ThemedTitleV2 title="My Title" icon={<img src="https://refine.dev/img/logo.png" />} /> } which is the inside of the ThemedTitleV2
2 Replies
kapa.ai
kapa.ai5mo ago
Hi @Kenneth Leung. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems you are encountering an error when trying to set the title of the AuthPage using the ThemedTitleV2 component. Based on the provided knowledge sources, here is the correct way to customize the title of the AuthPage using ThemedTitleV2. Make sure you are importing the necessary components correctly and using them as shown in the examples. Here is the correct approach: For Ant Design:
import { AuthPage, ThemedTitleV2 } from "@refinedev/antd";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
import { AuthPage, ThemedTitleV2 } from "@refinedev/antd";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
For Material UI:
import { AuthPage, ThemedTitleV2 } from "@refinedev/mui";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
import { AuthPage, ThemedTitleV2 } from "@refinedev/mui";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
For Chakra UI:
import { AuthPage, ThemedTitleV2 } from "@refinedev/chakra-ui";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
import { AuthPage, ThemedTitleV2 } from "@refinedev/chakra-ui";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
For Mantine:
import { AuthPage, ThemedTitleV2 } from "@refinedev/mantine";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
import { AuthPage, ThemedTitleV2 } from "@refinedev/mantine";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={
<ThemedTitleV2
title="My Title"
icon={<img src="<https://refine.dev/img/logo.png"> />}
/>
}
/>
);
};
Ensure that you are using the correct imports and the ThemedTitleV2 component is available in the package you are using (@refinedev/antd, @refinedev/mui, @refinedev/chakra-ui, or @refinedev/mantine). If you still encounter issues, please check the specific documentation for the UI framework you are using to ensure there are no additional requirements or updates. For more details, you can refer to the relevant documentation: - Ant Design AuthPage Title (https://refine.dev/docs/ui-integrations/ant-design/components/auth-page/#title) - Material UI AuthPage Title (https://refine.dev/docs/ui-integrations/material-ui/components/auth-page/#title) - Chakra UI AuthPage Title (https://refine.dev/docs/ui-integrations/chakra-ui/components/auth-page/#title) - Mantine AuthPage Title (https://refine.dev/docs/ui-integrations/mantine/components/auth-page/#title) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@579378642958942227> kapa.ai is still learning and improving, please let us know how it did by reacting below

Did you find this page helpful?