Skip to content

Commit

Permalink
solve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mattinannt committed Feb 7, 2024
2 parents 05c6a8d + 9a172d7 commit cd9657c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/[profile]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async function ProfilePage({ params }) {
</div>
<Link href={`https://twitter.com/${userData.twitter_username}`} target="_blank">
<Twitter
className="size-10 transition-all duration-150 ease-in-out hover:scale-110"
className="h-10 w-10 transition-all duration-150 ease-in-out hover:scale-110"
strokeWidth="1px"
/>
</Link>
Expand Down
6 changes: 3 additions & 3 deletions components/ui/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Avatar = React.forwardRef<
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Root
ref={ref}
className={cn("relative flex size-10 shrink-0 overflow-hidden rounded-full", className)}
className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
{...props}
/>
));
Expand All @@ -20,7 +20,7 @@ const AvatarImage = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Image>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Image ref={ref} className={cn("aspect-square size-full", className)} {...props} />
<AvatarPrimitive.Image ref={ref} className={cn("aspect-square h-full w-full", className)} {...props} />
));
AvatarImage.displayName = AvatarPrimitive.Image.displayName;

Expand All @@ -30,7 +30,7 @@ const AvatarFallback = React.forwardRef<
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Fallback
ref={ref}
className={cn("flex size-full items-center justify-center rounded-full bg-muted", className)}
className={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
{...props}
/>
));
Expand Down
4 changes: 2 additions & 2 deletions components/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
)}
checked={checked}
{...props}>
<span className="absolute left-2 flex size-3.5 items-center justify-center">
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
<Check className="size-4" />
</DropdownMenuPrimitive.ItemIndicator>
Expand All @@ -121,7 +121,7 @@ const DropdownMenuRadioItem = React.forwardRef<
className
)}
{...props}>
<span className="absolute left-2 flex size-3.5 items-center justify-center">
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
<Circle className="size-2 fill-current" />
</DropdownMenuPrimitive.ItemIndicator>
Expand Down
2 changes: 1 addition & 1 deletion components/ui/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ToastClose = React.forwardRef<
)}
toast-close=""
{...props}>
<X className="size-4" />
<X className="h-4 w-4" />
</ToastPrimitives.Close>
));
ToastClose.displayName = ToastPrimitives.Close.displayName;
Expand Down
29 changes: 4 additions & 25 deletions components/user-name-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface UserNameFormProps extends React.HTMLAttributes<HTMLFormElement> {

type FormData = z.infer<typeof userNameSchema>;

export function UserNameForm({ user, ...props }: UserNameFormProps) {
export function UserNameForm({ user, className, ...props }: UserNameFormProps) {
const router = useRouter();
const {
handleSubmit,
Expand Down Expand Up @@ -50,7 +50,7 @@ export function UserNameForm({ user, ...props }: UserNameFormProps) {
}

return (
<form className="space-y-4" onSubmit={handleSubmit(onSubmit)} {...props}>
<form className={cn(className)} onSubmit={handleSubmit(onSubmit)} {...props}>
<Card>
<CardHeader>
<CardTitle>Your Name</CardTitle>
Expand All @@ -68,33 +68,12 @@ export function UserNameForm({ user, ...props }: UserNameFormProps) {
</div>
</CardContent>
<CardFooter>
<button type="submit" className={cn(buttonVariants())} disabled={isSaving}>
{isSaving && <Loader2Icon className="mr-2 size-4 animate-spin" />}
<button type="submit" className={cn(buttonVariants(), className)} disabled={isSaving}>
{isSaving && <Loader2Icon className="mr-2 h-4 w-4 animate-spin" />}
<span>Save</span>
</button>
</CardFooter>
</Card>
<Card>
<CardHeader>
<CardTitle>API keys</CardTitle>
<CardDescription>Add and remobe API keys</CardDescription>
</CardHeader>
<CardContent>
<div className="grid gap-1">
<Label className="sr-only" htmlFor="name">
Name
</Label>
<Input id="name" className="w-[400px]" size={32} {...register("name")} />
{errors?.name && <p className="px-1 text-xs text-red-600">{errors.name.message}</p>}
</div>
</CardContent>
<CardFooter>
<button type="submit" className={cn(buttonVariants())} disabled={isSaving}>
{isSaving && <Loader2Icon className="mr-2 size-4 animate-spin" />}
<span>Generate API key</span>
</button>
</CardFooter>
</Card>
</form>
);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
}

0 comments on commit cd9657c

Please sign in to comment.