Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Nov 5, 2024
1 parent 702ee14 commit 5c01ac9
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/components/AgentProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default function AgentProfile({ currentLanguage }: AgentProfileProps) {
<h2 className="font-bold text-[#5788FA] text-xl">{AGENT_NAME}</h2>
<div className="group relative inline-flex items-center">
<button
type="button"
onClick={copyToClipboard}
className="text-[#5788FA] text-sm transition-colors hover:text-[#3D7BFF]"
>
Expand Down
1 change: 1 addition & 0 deletions app/components/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function PremadeChatInput({
}: PremadeChatInputProps) {
return (
<button
type="submit"
onClick={() => setUserInput(text)}
className={`whitespace-nowrap rounded-sm border border-[#5788FA]/50 px-2 py-1 text-[#5788FA] transition-colors hover:bg-zinc-900 hover:text-[#3D7BFF] ${
currentLanguage === 'th' ? notoSansThai.className : ''
Expand Down
1 change: 1 addition & 0 deletions app/components/LanguageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function LanguageSelector({
<div className="inline-flex overflow-hidden rounded-sm border border-[#5788FA]/50">
{languages.map(({ code, label }) => (
<button
type="button"
key={code}
onClick={handleClick(code)}
style={{ width: '44px' }}
Expand Down
2 changes: 1 addition & 1 deletion app/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Navbar({
return (
<div className="flex items-center justify-between border-[#5788FA]/50 border-b p-2">
<div className="flex items-center space-x-2">
<button className="mr-2 lg:hidden" onClick={handleClick}>
<button className="mr-2 lg:hidden" onClick={handleClick} type="button">
</button>
<div
Expand Down
6 changes: 3 additions & 3 deletions app/components/Stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function Stream({
useEffect(() => {
// Scrolls to the bottom of the chat when messages change
bottomRef.current?.scrollIntoView({ behavior: 'smooth' });
}, [streamEntries]);
}, []);

return (
<div className="flex-grow overflow-y-auto p-4 pb-20">
Expand All @@ -70,9 +70,9 @@ export default function Stream({
{translations[currentLanguage].stream.realTime}
</p>
<div className="mt-4 space-y-2" role="log" aria-live="polite">
{streamEntries.map((entry, index) => (
{streamEntries.map((entry) => (
<StreamEntryItem
key={index}
key={entry.timestamp.toDateString()}
entry={entry}
currentLanguage={currentLanguage}
/>
Expand Down
1 change: 1 addition & 0 deletions app/svg/CopySvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function CopySvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>copy svg</title>
<path
fillRule="evenodd"
d="M10.5 3A1.501 1.501 0 0 0 9 4.5h6A1.5 1.5 0 0 0 13.5 3h-3Zm-2.693.178A3 3 0 0 1 10.5 1.5h3a3 3 0 0 1 2.694 1.678c.497.042.992.092 1.486.15 1.497.173 2.57 1.46 2.57 2.929V19.5a3 3 0 0 1-3 3H6.75a3 3 0 0 1-3-3V6.257c0-1.47 1.073-2.756 2.57-2.93.493-.057.989-.107 1.487-.15Z"
Expand Down
1 change: 1 addition & 0 deletions app/svg/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default function ImageSvg() {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<title>image svg</title>
<defs>
<radialGradient id="sphereGradient" cx="30%" cy="30%" r="70%">
<stop offset="0%" stopColor="#4da6ff">
Expand Down
1 change: 1 addition & 0 deletions app/svg/NftSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function NftSvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>nft svg</title>
<path
fillRule="evenodd"
d="M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z"
Expand Down
1 change: 1 addition & 0 deletions app/svg/RequestSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function RequestSvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>request svg</title>
<path
fillRule="evenodd"
d="M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97-1.94.284-3.916.455-5.922.505a.39.39 0 0 0-.266.112L8.78 21.53A.75.75 0 0 1 7.5 21v-3.955a48.842 48.842 0 0 1-2.652-.316c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97Z"
Expand Down
1 change: 1 addition & 0 deletions app/svg/SendSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function SendSvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>send svg</title>
<path
fillRule="evenodd"
d="M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z"
Expand Down
1 change: 1 addition & 0 deletions app/svg/SwapSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function SwapSvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>swap svg</title>
<path
fillRule="evenodd"
d="M6.97 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.25 4.81V16.5a.75.75 0 0 1-1.5 0V4.81L3.53 8.03a.75.75 0 0 1-1.06-1.06l4.5-4.5Zm9.53 4.28a.75.75 0 0 1 .75.75v11.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 1 1 1.06-1.06l3.22 3.22V7.5a.75.75 0 0 1 .75-.75Z"
Expand Down
1 change: 1 addition & 0 deletions app/svg/TokenSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function TokenSvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>token svg</title>
<path d="M10.464 8.746c.227-.18.497-.311.786-.394v2.795a2.252 2.252 0 0 1-.786-.393c-.394-.313-.546-.681-.546-1.004 0-.323.152-.691.546-1.004ZM12.75 15.662v-2.824c.347.085.664.228.921.421.427.32.579.686.579.991 0 .305-.152.671-.579.991a2.534 2.534 0 0 1-.921.42Z" />
<path
fillRule="evenodd"
Expand Down
1 change: 1 addition & 0 deletions app/svg/WalletSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function WalletSvg() {
fill="currentColor"
className="h-4 w-4"
>
<title>wallet svg</title>
<path d="M2.273 5.625A4.483 4.483 0 0 1 5.25 4.5h13.5c1.141 0 2.183.425 2.977 1.125A3 3 0 0 0 18.75 3H5.25a3 3 0 0 0-2.977 2.625ZM2.273 8.625A4.483 4.483 0 0 1 5.25 7.5h13.5c1.141 0 2.183.425 2.977 1.125A3 3 0 0 0 18.75 6H5.25a3 3 0 0 0-2.977 2.625ZM5.25 9a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h13.5a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3H15a.75.75 0 0 0-.75.75 2.25 2.25 0 0 1-4.5 0A.75.75 0 0 0 9 9H5.25Z" />
</svg>
);
Expand Down

0 comments on commit 5c01ac9

Please sign in to comment.