-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DashboardLayout] Modify the default AppBar branding link #4450
Comments
Where did you get this from? Is it a template from the mui store? |
It is a component from material ui https://mui.com/toolpad/core/react-dashboard-layout/ |
This is a Toolpad component (which is a product of our company), I'm transfering to the correct repo 👍 |
What you're looking for is the branding={{
logo: <img src="https://mui.com/static/logo.png" alt="MUI logo" />,
title: 'MUI',
}} Ref this demo: https://mui.com/toolpad/core/react-dashboard-layout/#branding |
src
of the logo image
@bharatkashyap please read the issue again. |
Let me mention Again in. branding={{
logo: (
<Link to="/dashboard'>
</img src="https://mui.com/stxZXatic/logo.png" alt="MUI logo" />
</Link>)
title: 'MUI',
}} If i set like this it is giving me anchor tag erros or a tag inside descendant errors...... |
src
of the logo image
When will i get the solution for this? |
Understood. The default route is set in the We could potentially add a |
how ? branding.home ={{ }} |
@bharatkashyap is there any other way? |
Hi Ashish, the fastest way to see this feature land would be to contribute a PR that adds |
For this i have to clone repo? |
Yes, clone the repo, make the changes on your local, push it to your fork on a new branch and then create a Pull Request |
Yeah, currently there's no way to override this. |
@apedroferreira when it is going to be drop? |
@bharatkashyap I’m a bit busy at the moment and don’t have time to contribute to the MUI project. |
When will it be dropped, or is there a way to customize the branding home link? @apedroferreira |
Hey, we've planned the fixes for the next release of |
Like in a week or days? |
It depends on the planned features, but roughly we release in every 2-3 weeks. |
ok @prakhargupta1 Thank you for the information. I will be waiting for the feature. |
Steps to reproduce
Steps:
Current behavior
I am using Dashboard Layout
it is giving me error of a descendant elements because is already defined with '/' route. What i want is that to change the '/' route inside a tag how to access this anchor tag so i can change the route.i have an error when i click on the logo it is redirecting to the '/' layout
and if i add
As you can see the code i am accessing the classes of material ui so i can add my own style inside createTheme.
Please reply fast and i cannot provide the live link because it is against the company.
Expected behavior
Your environment
npx @mui/envinfo
Search keywords: Dashboard
Search keywords:
The text was updated successfully, but these errors were encountered: