We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi everyone im trying to change the default logo, but when i put the new one, the URL is just printed not rendered.
Example
<Refine routerProvider={routerProvider} notificationProvider={useNotificationProvider} authProvider={authProvider} resources={resources} options={{ syncWithLocation: true, warnWhenUnsavedChanges: true, liveMode: "auto", useNewQueryKeys: true, title: {icon: "https://avataaars.io/?avatarStyle=Circle&topType=ShortHairShortFlat&accessoriesType=Blank&hairColor=BrownDark&facialHairType=Blank&clotheType=BlazerShirt&eyeType=Default&eyebrowType=RaisedExcitedNatural&mouthType=Default&skinColor=Light"} }} >
Icon rendered
"@refinedev/antd": "^5.45.1", "@refinedev/cli": "^2.16.42", "@refinedev/core": "^4.57.1", "@refinedev/nestjs-query": "^1.3.5", "@refinedev/react-router-v6": "^4.6.2",
No response
The text was updated successfully, but these errors were encountered:
Hello @fellipeamedeiros,
icon type is React.ReactNode, It means you need to pass React component.
icon
React.ReactNode
You can use like this:
options={{ title: { icon: ( <img style={{ width: 24, height: 24, }} src="https://avataaars.io/?avatarStyle=Circle&topType=ShortHairShortFlat&accessoriesType=Blank&hairColor=BrownDark&facialHairType=Blank&clotheType=BlazerShirt&eyeType=Default&eyebrowType=RaisedExcitedNatural&mouthType=Default&skinColor=Light%22%7D" /> ), }, }}
Sorry, something went wrong.
Thanks @alicanerdurmaz works perfectly
No branches or pull requests
Describe the bug
Hi everyone im trying to change the default logo, but when i put the new one, the URL is just printed not rendered.
Steps To Reproduce
Example
<Refine
routerProvider={routerProvider}
notificationProvider={useNotificationProvider}
authProvider={authProvider}
resources={resources}
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
liveMode: "auto",
useNewQueryKeys: true,
title: {icon: "https://avataaars.io/?avatarStyle=Circle&topType=ShortHairShortFlat&accessoriesType=Blank&hairColor=BrownDark&facialHairType=Blank&clotheType=BlazerShirt&eyeType=Default&eyebrowType=RaisedExcitedNatural&mouthType=Default&skinColor=Light"}
}}
>
Expected behavior
Icon rendered
Packages
Additional Context
No response
The text was updated successfully, but these errors were encountered: