Skip to content

Commit eca1a10

Browse files
fix prettier
1 parent 4a4a9ec commit eca1a10

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

packages/ui/components/chat-pdf-export.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ const ChatPDFDocument: React.FC<ChatPDFDocumentProps> = ({
160160
{/* Chat Content */}
161161
<View style={styles.chatContainer}>
162162
{/* Welcome Message */}
163-
<View style={[styles.messageContainer, styles.assistantMessage]} wrap={false}>
163+
<View
164+
style={[styles.messageContainer, styles.assistantMessage]}
165+
wrap={false}
166+
>
164167
<Text style={styles.roleLabel}>Assistant</Text>
165168
<View style={styles.assistantBubble}>
166169
<Text style={styles.messageText}>
@@ -202,7 +205,8 @@ const ChatPDFDocument: React.FC<ChatPDFDocumentProps> = ({
202205
{/* Footer */}
203206
<View style={styles.footer}>
204207
<Text>
205-
Generated by {chatbot.name || 'OpenAssistantGPT'} - {chatbot.footerTextName || 'OpenAssistantGPT'}
208+
Generated by {chatbot.name || 'OpenAssistantGPT'} -{' '}
209+
{chatbot.footerTextName || 'OpenAssistantGPT'}
206210
</Text>
207211
</View>
208212

@@ -224,7 +228,7 @@ export const generateChatPDF = async (
224228
chatbot: ChatbotConfig,
225229
): Promise<Blob> => {
226230
const timestamp = new Date().toLocaleString();
227-
231+
228232
const doc = (
229233
<ChatPDFDocument
230234
messages={messages}
@@ -237,4 +241,4 @@ export const generateChatPDF = async (
237241
return pdfBlob;
238242
};
239243

240-
export default ChatPDFDocument;
244+
export default ChatPDFDocument;

packages/ui/components/chat.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export function OpenAssistantGPTChat({
161161
const a = document.createElement('a');
162162
a.style.display = 'none';
163163
a.href = url;
164-
a.download = `chat_conversation_${new Date().toISOString().split('T')[0]}.pdf`;
164+
a.download = `chat_conversation_${
165+
new Date().toISOString().split('T')[0]
166+
}.pdf`;
165167
document.body.appendChild(a);
166168
a.click();
167169
window.URL.revokeObjectURL(url);

0 commit comments

Comments
 (0)