Skip to content

Commit

Permalink
fix: 🐛 type error
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpetrov committed Feb 5, 2024
1 parent d9d9e9a commit 5ac7081
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
15 changes: 6 additions & 9 deletions apps/dashboard/components/Layout/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -412,28 +412,25 @@ export default function Navigation() {
type="module"
dangerouslySetInnerHTML={{
__html: `
// import Chatbox from 'https://cdn.jsdelivr.net/npm/@chaindesk/embeds@latest/dist/chatbox/index.js';
import Chatbox from 'http://localhost:8000/dist/chatbox/index.js';
import Chatbox from 'https://cdn.jsdelivr.net/npm/@chaindesk/embeds@latest/dist/chatbox/index.js';
// import Chatbox from 'http://localhost:8000/dist/chatbox/index.js';
try {
Chatbox.initBubble({
// agentId: 'clq6g5cuv000wpv8iddswwvnd',
agentId: 'clrz0tn6h000108kxfyomdzxg',
agentId: 'clq6g5cuv000wpv8iddswwvnd',
// agentId: 'clrz0tn6h000108kxfyomdzxg',
contact: {
userId: '${session?.user?.id}',
firstName: '${session?.user?.name || ''}',
email: '${session?.user?.email}',
},
context: \`${`Task Bug Reporting: Use the following step-by-step to collect information about the bug and report it to the development team.
context: '${JSON.stringify(`Task Bug Reporting: Use the following step-by-step to collect information about the bug and report it to the development team.
1- Please describe the bug in detail.
2- Please provide the steps to reproduce the bug.
3- Please provide the expected behavior.
4- Please provide your ressource ID (Agent ID or Datastore ID or Form ID)
5- Please share a screenshot or a video if possible.
6- Tell the user that the bug has been reported and that the development team will take care of it.
`}\`,
`)}',
interface: {
// iconUrl: 'https://www.chaindesk.ai/favicon.png',
iconUrl: 'https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Smilies/Love%20Letter.png',
Expand Down
8 changes: 5 additions & 3 deletions apps/dashboard/components/cs-landing-page/Hero2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Hero() {
<div className="relative">
{/* <div className="absolute top-0 z-0 inset-0 h-full pointer-events-none w-full bg-black bg-[linear-gradient(to_right,#80808022_1px,transparent_1px),linear-gradient(to_bottom,#80808022_1px,transparent_1px)] bg-[size:24px_24px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_60%,transparent_100%)]"></div> */}

<Container className="relative z-10 pt-20 pb-16 mb-12 text-center lg:pt-10">
<Container className="relative z-10 pt-8 pb-16 mb-12 text-center lg:pt-10">
{/* <img
className="object-contain absolute left-0 bg-top opacity-60 -translate-y-1/4"
src="https://nextsiders.vercel.app/_next/static/media/Hero.Gradient.0bce135c.svg"
Expand Down Expand Up @@ -105,14 +105,16 @@ export default function Hero() {
</Link>
</div>

<h2 className="mb-2 text-lg font-bold text-violet-300 sm:text-2xl sm:mb-4">
{/* <h2 className="mb-2 text-lg font-bold text-violet-300 sm:text-2xl sm:mb-4">
Get Your Own
</h2>
</h2> */}
<h1 className="text-4xl font-bold !leading-tight tracking-tight text-white whitespace-pre-wrap font-display sm:text-7xl bg-clip-text">
{/* {`Custom\nGPT Agent\nFor Your Startup`} */}
{/* {`ChatGPT\nSupport Agent\nFor Your Startup`} */}
{/* {`Scale\nYour Startup\nWith AI At your side`} */}
{`Custom\nGPT Agent\nFor Your Startup`}
{/* <span>AI Support</span>
{`\nFor Your Startup`} */}
</h1>

<div className="hidden flex-col mt-4 space-y-4 sm:flex">
Expand Down
6 changes: 3 additions & 3 deletions apps/dashboard/pages/settings/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export default function ProfileSettingsPage() {
React.useEffect(() => {
if (status === 'authenticated') {
methods.reset({
email: session?.user?.email,
name: session?.user?.name,
email: session?.user?.email || '',
name: session?.user?.name || '',
customPicture: session?.user?.customPicture,
});
}
Expand Down Expand Up @@ -141,7 +141,7 @@ export default function ProfileSettingsPage() {

<IconInput
// innerIcon={<CorporateFareRoundedIcon />}
defaultIconUrl={session?.user?.customPicture}
defaultIconUrl={session?.user?.customPicture || ''}
value={customPicture!}
onChange={handleUploadPicture}
onDelete={() => {
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/widgets/chatbox/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Agent } from '@chaindesk/prisma';

export type InitWidgetProps = {
id?: string;
initConfig: AgentInterfaceConfig;
initConfig?: AgentInterfaceConfig;
agentId?: string;
contact?: CustomContact;
styles?: SxProps;
Expand Down
1 change: 1 addition & 0 deletions packages/lib/types/next-auth.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
Subscription,
SubscriptionPlan,
Usage,
User,
} from '@chaindesk/prisma';

declare module 'next-auth' {
Expand Down

0 comments on commit 5ac7081

Please sign in to comment.