Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Mar 26, 2024
1 parent 4d24ebb commit ce5c52a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions ee/tabby-ui/app/(dashboard)/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import {
IconLightingBolt,
IconNetwork,
IconScrollText,
IconUser,
IconSparkles
IconSparkles,
IconUser
} from '@/components/ui/icons'

export interface SidebarProps {
Expand Down
10 changes: 5 additions & 5 deletions ee/tabby-ui/app/(dashboard)/experimentalAI/components/Option.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="flex items-center space-x-4 rounded-md border p-4">
Expand All @@ -18,4 +18,4 @@ export default function ExperimentalAIOption ({
<Switch />
</div>
)
}
}
3 changes: 2 additions & 1 deletion ee/tabby-ui/app/(dashboard)/experimentalAI/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default function IndexPage() {

<ExperimentalAIOption
title="Quick Action Bar"
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." />
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."
/>
</div>
)
}
10 changes: 5 additions & 5 deletions ee/tabby-ui/components/ui/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1201,11 +1201,11 @@ function IconSparkles({ className, ...props }: React.ComponentProps<'svg'>) {
className={cn('h-4 w-4', className)}
{...props}
>
<path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/>
<path d="M5 3v4"/>
<path d="M19 17v4"/>
<path d="M3 5h4"/>
<path d="M17 19h4"/>
<path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z" />
<path d="M5 3v4" />
<path d="M19 17v4" />
<path d="M3 5h4" />
<path d="M17 19h4" />
</svg>
)
}
Expand Down
12 changes: 6 additions & 6 deletions ee/tabby-ui/components/ui/switch.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
"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<typeof SwitchPrimitives.Root>,
React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
>(({ className, ...props }, ref) => (
<SwitchPrimitives.Root
className={cn(
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
'peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
className
)}
{...props}
ref={ref}
>
<SwitchPrimitives.Thumb
className={cn(
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
'pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
)}
/>
</SwitchPrimitives.Root>
Expand Down

0 comments on commit ce5c52a

Please sign in to comment.