Skip to content

Commit

Permalink
#93 Cleaning up the ChatPage header
Browse files Browse the repository at this point in the history
  • Loading branch information
santthosh committed Jun 26, 2024
1 parent bfc70da commit 4c0b18b
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 108 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"groq-sdk": "^0.3.3",
"highlight.js": "^11.9.0",
"marked-react": "^2.0.0",
"next": "14.1.1",
"next": "14.2.4",
"nodemailer": "^6.9.13",
"openai": "^4.42.0",
"react": "^18",
Expand Down
107 changes: 59 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions src/app/assistants/[id]/chat/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,7 @@ export default function ChatPage() {
key='1'
className='flex h-[calc(100vh-5rem)] max-h-full max-w-full flex-col'
>
<div
className={'flex space-y-4 pb-2 pt-1 '}
style={{
backgroundColor: getPrimaryBackgroundColor(assistant),
}}
>
<ChatPageHeader />
</div>
<ChatPageHeader />
<div className='flex-grow space-y-4 overflow-auto p-4 py-0 pt-0'>
<div className='mx-auto flex max-w-2xl flex-col rounded-b rounded-t-none'>
<div className={'max-w-2xl overflow-y-auto'}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/assistants/[id]/chat/ChatPageContextWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useGetAssistant } from '@/app/assistants/[id]/client';
import React, { useEffect, useState } from 'react';
import React, { useContext, useEffect, useState } from 'react';
import { Assistant } from '@/app/types/assistant';
import ChatPage from '@/app/assistants/[id]/chat/ChatPage';
import { Spinner } from 'flowbite-react';
Expand Down
Loading

0 comments on commit 4c0b18b

Please sign in to comment.