I want to change the logo at top left corner to my logo. I see the code that assigns this logo has option to pick from custom_theme
. I tried to give path to my logo's png file but that did not work. Can you please share how can I add my own logo?
Below is what my prodigy.json
file looks like
{
"custom_theme": {
"logo": "path/to/my/image.png"
}
}
This is the snippet that I am talking about
const Header = withStyles$1(styles$F)(_Header),
CustomLogo = ({ theme, width, height }) =>
jsxRuntimeExports.jsx("img", {
src: theme.logo,
width,
height,
}),
......
class Logo extends React.Component {
render() {
const { theme, showLink, url } = this.props,
logo =
theme && theme.logo
? jsxRuntimeExports.jsx(CustomLogo, {
...this.props,
theme,
})
: jsxRuntimeExports.jsx(ProdigyLogo, {
...this.props,
});
return showLink && url
? jsxRuntimeExports.jsx("a", { href: url, children: logo })
: logo;
}
}