Skip to content

Commit 20109b6

Browse files
committed
change icon
1 parent 9b7d6fb commit 20109b6

File tree

4 files changed

+40
-42
lines changed

4 files changed

+40
-42
lines changed

components/Chat/ChatInput.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import {
2-
IconArrowDown,
3-
IconBolt,
4-
IconCircleSquare,
5-
IconSend,
6-
IconSendOff,
7-
IconUpload,
8-
IconWriting
9-
} from '@tabler/icons-react';
1+
import {IconArrowDown, IconBolt, IconSend, IconUpload, IconWriting} from '@tabler/icons-react';
102
import React, {KeyboardEvent, MutableRefObject, useCallback, useContext, useEffect, useRef, useState,} from 'react';
113

124
import {useTranslation} from 'next-i18next';
@@ -466,16 +458,22 @@ export const ChatInput = ({
466458
onClick={messageIsStreaming ? stopSend : handleSend}
467459
>
468460
{messageIsStreaming ? (
469-
<IconCircleSquare size={18}/>
470-
) : (
461+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"
462+
fill="currentColor"
463+
className="icon icon-tabler icons-tabler-filled icon-tabler-circle-rectangle">
464+
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
465+
<path
466+
d="M17 3.34a10 10 0 1 1 -15 8.66l.005 -.324a10 10 0 0 1 14.995 -8.336m0 5.66h-10a1 1 0 0 0 -1 1v4a1 1 0 0 0 1 1h10a1 1 0 0 0 1 -1v-4a1 1 0 0 0 -1 -1"/>
467+
</svg>
468+
) : (
471469
<IconSend size={18}/>
472-
)}
473-
</button>
470+
)}
471+
</button>
474472

475-
{showScrollDownButton && (
476-
<div className="absolute bottom-12 right-0 lg:bottom-0 lg:-right-10">
477-
<button
478-
className="flex h-7 w-7 items-center justify-center rounded-full bg-neutral-300 text-gray-800 shadow-md hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-neutral-200"
473+
{showScrollDownButton && (
474+
<div className="absolute bottom-12 right-0 lg:bottom-0 lg:-right-10">
475+
<button
476+
className="flex h-7 w-7 items-center justify-center rounded-full bg-neutral-300 text-gray-800 shadow-md hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:text-neutral-200"
479477
onClick={onScrollDownClick}
480478
>
481479
<IconArrowDown size={18}/>

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@dqbd/tiktoken": "^1.0.2",
16-
"@tabler/icons-react": "^2.9.0",
16+
"@tabler/icons-react": "^2.47.0",
1717
"eventsource-parser": "^0.1.0",
1818
"i18next": "^22.4.13",
1919
"next": "13.2.4",

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -439,18 +439,18 @@
439439
dependencies:
440440
tslib "^2.4.0"
441441

442-
"@tabler/icons-react@^2.9.0":
443-
version "2.10.0"
444-
resolved "https://registry.npmjs.org/@tabler/icons-react/-/icons-react-2.10.0.tgz"
445-
integrity sha512-cWJPhPv7QG89OByVaMc3cs0mY9yIHf4ctoRrjQ4+uXjna2xx0SkwfXAtgt8UhRnp/b47Pr3h59P8Vojw49d2jA==
442+
"@tabler/icons-react@^2.47.0":
443+
version "2.47.0"
444+
resolved "https://registry.npmmirror.com/@tabler/icons-react/-/icons-react-2.47.0.tgz"
445+
integrity sha512-iqly2FvCF/qUbgmvS8E40rVeYY7laltc5GUjRxQj59DuX0x/6CpKHTXt86YlI2whg4czvd/c8Ce8YR08uEku0g==
446446
dependencies:
447-
"@tabler/icons" "2.10.0"
447+
"@tabler/icons" "2.47.0"
448448
prop-types "^15.7.2"
449449

450-
"@tabler/icons@2.10.0":
451-
version "2.10.0"
452-
resolved "https://registry.npmjs.org/@tabler/icons/-/icons-2.10.0.tgz"
453-
integrity sha512-rj9xrHTSw7bPpylx8g9xhhUgO9NYKX1wGnGrMaFS5CQ9KS+jhwhKFqbZaQKhXNhpvI0cLEEW6GaRXdrC3iBs1A==
450+
"@tabler/icons@2.47.0":
451+
version "2.47.0"
452+
resolved "https://registry.npmmirror.com/@tabler/icons/-/icons-2.47.0.tgz"
453+
integrity sha512-4w5evLh+7FUUiA1GucvGj2ReX2TvOjEr4ejXdwL/bsjoSkof6r1gQmzqI+VHrE2CpJpB3al7bCTulOkFa/RcyA==
454454

455455
"@tailwindcss/typography@^0.5.9":
456456
version "0.5.9"

0 commit comments

Comments
 (0)