Skip to content

Commit c6f94db

Browse files
Merge pull request #10 from TensorBlock/file-upload-support
Fix: Change upload file button icon
2 parents 80412c8 + 6d3bd37 commit c6f94db

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/chat/FileUploadButton.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useRef, useState } from 'react';
22
import { FileUploadService } from '../../services/file-upload-service';
33
import { SettingsService } from '../../services/settings-service';
4+
import { Paperclip } from 'lucide-react';
45

56
interface FileUploadButtonProps {
67
onFilesSelected: (files: File[]) => void;
@@ -63,13 +64,7 @@ const FileUploadButton: React.FC<FileUploadButtonProps> = ({
6364
className="flex items-center justify-center w-8 h-8 text-gray-500 rounded-full hover:text-gray-700 hover:bg-gray-100 focus:outline-none"
6465
title="Upload file"
6566
>
66-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" className="w-5 h-5">
67-
<path
68-
fillRule="evenodd"
69-
d="M5.5 17a4.5 4.5 0 01-1.44-8.765 4.5 4.5 0 018.302-3.046 3.5 3.5 0 014.504 4.272A4 4 0 0115 17H5.5zm3.75-2.75a.75.75 0 001.5 0V9.66l1.95 2.1a.75.75 0 101.1-1.02l-3.25-3.5a.75.75 0 00-1.1 0l-3.25 3.5a.75.75 0 101.1 1.02l1.95-2.1v4.59z"
70-
clipRule="evenodd"
71-
/>
72-
</svg>
67+
<Paperclip size={20} />
7368
</button>
7469
<input
7570
ref={fileInputRef}

0 commit comments

Comments
 (0)