-
Notifications
You must be signed in to change notification settings - Fork 71
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
FullPageChat - Unable to assign type theme={{}} #2
Comments
Got the same issue. Is there any way to customize ? |
Put the theme regardless, it will work
|
You can add it and it will work but will fail to build a docker image 36.13 Type error: Type '{ chatflowid: string; apiHost: string | undefined; theme: { button: { backgroundColor: string; size: string; iconColor: string; customIconSrc: string; }; chatWindow: { welcomeMessage: string; backgroundColor: string; ... 6 more ...; textInput: { ...; }; }; }; }' is not assignable to type 'IntrinsicAttributes & BotProps & { style?: CSSProperties | undefined; className?: string | undefined; }'. Any planned updates to the react-embed component to address this issue? |
I solved it by creating a typing in d.ts declare module 'flowise-embed-react' { export const FullPageChat: React.FC |
After adding this, I get the following error now (wasnt there before) |
Its working for me like this:
|
is because the FullPageChat component doesn't have a theme prop defined in its API. Therefore you cannot pass it a theme object.
The text was updated successfully, but these errors were encountered: