blank-aquamarine
blank-aquamarineā€¢15mo ago

Remove default app icon

Hi guys, This should be simple but I must be missing something. I want to replace the default Icon, so I found where in the application it is being used, but even if comment the code, it still persists in the UI? How can iI remove it? Thanks
No description
No description
5 Replies
kapa.ai
kapa.aiā€¢15mo ago
Hi @jaco0670. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.aiā€¢15mo ago
---------------------- To remove the default title and icon in the AuthPage, you can either use the renderContent property or set the title property to false. Here are two examples for Ant Design and Mantine: Ant Design: 1. Using renderContent property:
import { AuthPage } from "@refinedev/antd";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
renderContent={(content: React.ReactNode) => {
return content;
}}
/>
);
};
import { AuthPage } from "@refinedev/antd";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
renderContent={(content: React.ReactNode) => {
return content;
}}
/>
);
};
2. Setting title property to false:
import { AuthPage } from "@refinedev/antd";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={false}
/>
);
};
import { AuthPage } from "@refinedev/antd";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={false}
/>
);
};
Mantine: 1. Using renderContent property:
import { AuthPage } from "@refinedev/mantine";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
renderContent={(content: React.ReactNode) => {
return content;
}}
/>
);
};
import { AuthPage } from "@refinedev/mantine";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
renderContent={(content: React.ReactNode) => {
return content;
}}
/>
);
};
2. Setting title property to false:
import { AuthPage } from "@refinedev/mantine";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={false}
/>
);
};
import { AuthPage } from "@refinedev/mantine";

const MyLoginPage = () => {
return (
<AuthPage
type="login"
title={false}
/>
);
};
These examples should help you remove the default title and icon from the AuthPage. Make sure to replace the relevant parts of your code with the examples provided. Sources: - Ant Design AuthPage (https://refine.dev/docs/api-reference/antd/components/antd-auth-page) - Mantine AuthPage (https://refine.dev/docs/api-reference/mantine/components/mantine-auth-page) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
| refine
component from refine is an authentication page that can be used to login, register, forgot password, and update password.
| refine
component from refine is an authentication page that can be used to login, register, forgot password, and update password.
kapa.ai
kapa.aiā€¢15mo ago
<@486442088280358912> kapa.ai is still learning and improving, please let us how it did by reacting below
other-emerald
other-emeraldā€¢15mo ago
Hey @jaco0670 its the default icon, you can try passing null or any other empty react node. If the result does not satisfy your needs, you can always try swizzling the themedtitlev2 component and customize šŸ«¶
blank-aquamarine
blank-aquamarineā€¢15mo ago
Hey @aliemirs thanks for your help šŸ™‚
More Posts
error ā€œcanā€™t find module @test, and something about children anyIt errors saying that it canā€™t find a module ā€œ@testā€, then it says that It needs ā€œā€˜{children: any }ā€How to set the success pop up message on front end?When I succesfull submit I would like the pop up message. const handleAddEmployee = async (values:How to adding Resource type?I managed to work with current resources. However I have a list: EmployeeList, where I have create ohow to make POST api request by click on Save ButtonI have to call this POST api "users/edit/:id" with refine inferencer above API config contain dyndo i need to create another project for the front end of my project?I created a project, Nextjs, MaterialUI and Supabaseā€¦ When i go to localhiost 3000, it just gives mefetch datai want to fetch a specific resource . I used useMany but it is required to add ids and I do not wantHow do I create a fronted Itā€™s justHow do I create a fronted??? Itā€™s just giving me the client side and no real FrontEnd paceReferring componentā€™s local state inside MUIā€™s DataGridSo Iā€™m noticing that the renderCell function of a column cannot refer the updated value of the curreSave modifications to a relationshipIn my edit page for posts, I pull in the authors information. I want to save any changes to the authCustom data-provider for same resource and "useTable" for different http requestsI need to build a custom data provider for fetching data from my API. My use case requires me to sho