wizard avatar fix
parent
ed71b11daf
commit
680c6724b6
|
@ -73,12 +73,21 @@ const Wizard = ({ dismissBot }) => {
|
|||
setTimeout(dismissBot, 3000);
|
||||
};
|
||||
|
||||
const getAvatar = () => {
|
||||
const basePath = "public/icons/wizard.png";
|
||||
if (process.env.PUBLIC_URL) {
|
||||
return `${process.env.PUBLIC_URL}/${basePath}`;
|
||||
} else {
|
||||
return basePath;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={botTheme}>
|
||||
<ChatBot
|
||||
handleEnd={handleEnd}
|
||||
steps={steps}
|
||||
botAvatar="public/icons/wizard.png"
|
||||
botAvatar={getAvatar()}
|
||||
headerTitle="Zirhan"
|
||||
/>
|
||||
</ThemeProvider>
|
||||
|
|
Loading…
Reference in New Issue