Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLunaHey committed Jan 12, 2025
1 parent aa431f4 commit ecdfe9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/components/feed-selector.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useAuth } from '../lib/bluesky/hooks/use-auth';
import { useFeeds } from '../lib/bluesky/hooks/use-feeds';
import { usePreferences } from '../lib/bluesky/hooks/use-preferences';
import { useSettings } from '../hooks/use-setting';
import * as Ariakit from '@ariakit/react';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/banner.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Image } from './image';

export const Banner = ({ banner }: { banner: string | undefined }) => {
return <Image src={banner} clickable={false} classNames={{ image: 'w-full h-32 object-cover' }} />;
return <Image src={banner} clickable={false} classNames={{ image: 'w-full h-36 object-cover' }} />;
};
2 changes: 1 addition & 1 deletion src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '@/lib/utils';
import { forwardRef } from 'react';

export const buttonVariants = cva(
const buttonVariants = cva(
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
{
variants: {
Expand Down
24 changes: 10 additions & 14 deletions src/components/ui/checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { Check } from "lucide-react"
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
import { Check } from 'lucide-react';

import { cn } from "@/lib/utils"
import { cn } from '@/lib/utils';
import { forwardRef } from 'react';

const Checkbox = React.forwardRef<
export const Checkbox = forwardRef<
React.ElementRef<typeof CheckboxPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
>(({ className, ...props }, ref) => (
<CheckboxPrimitive.Root
ref={ref}
className={cn(
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
className
'peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',
className,
)}
{...props}
>
<CheckboxPrimitive.Indicator
className={cn("flex items-center justify-center text-current")}
>
<CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current')}>
<Check className="h-4 w-4" />
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
))
Checkbox.displayName = CheckboxPrimitive.Root.displayName

export { Checkbox }
));
Checkbox.displayName = CheckboxPrimitive.Root.displayName;

0 comments on commit ecdfe9d

Please sign in to comment.