mirror of
https://dev.azure.com/tstanciu94/ReverseProxy/_git/ReverseProxy_Frontend
synced 2022-12-28 18:12:07 +02:00
wizard avatar fix
This commit is contained in:
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…
x
Reference in New Issue
Block a user