From ce5c52a1f56d62ff0a2ad3cda1e63320b554a2f2 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 03:40:13 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-ui/app/(dashboard)/components/sidebar.tsx | 4 ++-- .../(dashboard)/experimentalAI/components/Option.tsx | 10 +++++----- ee/tabby-ui/app/(dashboard)/experimentalAI/page.tsx | 3 ++- ee/tabby-ui/components/ui/icons.tsx | 10 +++++----- ee/tabby-ui/components/ui/switch.tsx | 12 ++++++------ 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx b/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx index 59bd3fdd69db..0269a4283fb6 100644 --- a/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx +++ b/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx @@ -22,8 +22,8 @@ import { IconLightingBolt, IconNetwork, IconScrollText, - IconUser, - IconSparkles + IconSparkles, + IconUser } from '@/components/ui/icons' export interface SidebarProps { diff --git a/ee/tabby-ui/app/(dashboard)/experimentalAI/components/Option.tsx b/ee/tabby-ui/app/(dashboard)/experimentalAI/components/Option.tsx index 3de7e3f97d2c..8a59ae11cfcb 100644 --- a/ee/tabby-ui/app/(dashboard)/experimentalAI/components/Option.tsx +++ b/ee/tabby-ui/app/(dashboard)/experimentalAI/components/Option.tsx @@ -1,13 +1,13 @@ 'use client' -import { Switch } from "@/components/ui/switch" +import { Switch } from '@/components/ui/switch' -export default function ExperimentalAIOption ({ +export default function ExperimentalAIOption({ title, description }: { - title: string; - description: string; + title: string + description: string }) { return (
@@ -18,4 +18,4 @@ export default function ExperimentalAIOption ({
) -} \ No newline at end of file +} diff --git a/ee/tabby-ui/app/(dashboard)/experimentalAI/page.tsx b/ee/tabby-ui/app/(dashboard)/experimentalAI/page.tsx index 45686527d341..e890bd5167ce 100644 --- a/ee/tabby-ui/app/(dashboard)/experimentalAI/page.tsx +++ b/ee/tabby-ui/app/(dashboard)/experimentalAI/page.tsx @@ -15,7 +15,8 @@ export default function IndexPage() { + description="Enable Quick Action Bar to display a convenient toolbar when you select code, offering options to explain the code, add unit tests, and more." + /> ) } diff --git a/ee/tabby-ui/components/ui/icons.tsx b/ee/tabby-ui/components/ui/icons.tsx index 91cc7f51dfee..ee113be3c7ac 100644 --- a/ee/tabby-ui/components/ui/icons.tsx +++ b/ee/tabby-ui/components/ui/icons.tsx @@ -1201,11 +1201,11 @@ function IconSparkles({ className, ...props }: React.ComponentProps<'svg'>) { className={cn('h-4 w-4', className)} {...props} > - - - - - + + + + + ) } diff --git a/ee/tabby-ui/components/ui/switch.tsx b/ee/tabby-ui/components/ui/switch.tsx index bc69cf2dbfc5..22432b9cda1c 100644 --- a/ee/tabby-ui/components/ui/switch.tsx +++ b/ee/tabby-ui/components/ui/switch.tsx @@ -1,9 +1,9 @@ -"use client" +'use client' -import * as React from "react" -import * as SwitchPrimitives from "@radix-ui/react-switch" +import * as React from 'react' +import * as SwitchPrimitives from '@radix-ui/react-switch' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Switch = React.forwardRef< React.ElementRef, @@ -11,7 +11,7 @@ const Switch = React.forwardRef< >(({ className, ...props }, ref) => (