Skip to content
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

Support chat class based #843

Merged
merged 8 commits into from
Nov 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fixed minor issues
mishramonalisha76 committed Nov 15, 2023
commit e33870fce0f290ea637077f2200b52779860cae6
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ export const ChatSupportTest = () => {
<SupportChat

signer={librarySigner}
supportAddress="0x99A08ac6254dcf7ccc37CeC662aeba8eFA666666"
supportAddress="0x6269C363695c5E14447a1b3873d7Ae4Ddf6E6eF7"
apiKey="tAWEnggQ9Z.UaDBNjrvlJZx3giBTIQDcT8bKQo1O1518uF1Tea7rPwfzXv2ouV5rX9ViwgJUrXm"
env={env}
greetingMsg="How can i help you?"
2 changes: 1 addition & 1 deletion packages/uiweb/src/lib/components/supportChat/Chat.tsx
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ export type ButtonStyleProps = {
account: accountadd,
env,
apiKey,
userAlice,
userAlice: userAlice!,
supportAddress,
signer
});
4 changes: 2 additions & 2 deletions packages/uiweb/src/lib/hooks/useSDKSocket.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import {
EVENTS
} from '@pushprotocol/socket';
import { ENV } from '../config';
import { CONSTANTS, PushAPI } from '@pushprotocol/restapi';
import { CONSTANTS, PushAPI, SignerType } from '@pushprotocol/restapi';


export type SDKSocketHookOptions = {
@@ -14,7 +14,7 @@ export type SDKSocketHookOptions = {
apiKey: string,
userAlice: PushAPI ,
supportAddress: string | null,
signer: string | null
signer: SignerType | null
};

export const useSDKSocket =({ account, env = ENV.PROD, socketType = 'chat',apiKey, userAlice, supportAddress, signer }: SDKSocketHookOptions) => {