Skip to content

Commit

Permalink
fix: ran the pnpm format and lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
itsarghyadas committed Oct 1, 2024
1 parent 8639ae0 commit 5a3a526
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions components/sections/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function Hero() {
const post = allDocs
.filter(
(post) =>
post.date && post.date <= new Date().toISOString() && post.published
post.date && post.date <= new Date().toISOString() && post.published,
)
.sort((a, b) => {
if (!a.date && !b.date) return 0; // Both dates are undefined, keep original order
Expand All @@ -34,7 +34,7 @@ export default async function Hero() {
variant: "outline",
size: "sm",
}),
"rounded-full"
"rounded-full",
)}
>
🎉 <Separator className="mx-2 h-4" orientation="vertical" />
Expand All @@ -47,7 +47,7 @@ export default async function Hero() {
"text-black dark:text-white",
"relative mx-0 max-w-[43.5rem] pt-5 md:mx-auto md:px-4 md:py-2",
"text-balance text-left font-semibold tracking-tighter md:text-center",
"text-5xl sm:text-7xl md:text-7xl lg:text-7xl"
"text-5xl sm:text-7xl md:text-7xl lg:text-7xl",
)}
>
UI library for Design Engineers
Expand All @@ -72,7 +72,7 @@ export default async function Hero() {
variant: "rainbow",
size: "lg",
}),
"w-full gap-2"
"w-full gap-2",
)}
>
Browse Components
Expand All @@ -85,7 +85,7 @@ export default async function Hero() {
size: "lg",
variant: "rainbow-outline",
}),
"w-full gap-2"
"w-full gap-2",
)}
>
Browse Templates
Expand Down
12 changes: 6 additions & 6 deletions components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function SiteHeader() {
next: {
revalidate: 3600,
},
}
},
);

if (response.ok) {
Expand All @@ -41,7 +41,7 @@ export async function SiteHeader() {
return (
<header
className={cn(
"supports-backdrop-blur:bg-background/90 sticky top-0 z-40 w-full bg-background/40 backdrop-blur-lg"
"supports-backdrop-blur:bg-background/90 sticky top-0 z-40 w-full bg-background/40 backdrop-blur-lg",
)}
>
<div className="container flex h-16 items-center">
Expand All @@ -53,7 +53,7 @@ export async function SiteHeader() {
buttonVariants({
variant: "rainbow",
}),
"hidden md:inline-flex"
"hidden md:inline-flex",
)}
target="_blank"
href={siteConfig.links.github}
Expand Down Expand Up @@ -86,7 +86,7 @@ export async function SiteHeader() {
buttonVariants({
variant: "ghost",
}),
"w-9 px-0"
"w-9 px-0",
)}
>
<Icons.discord className="size-4" />
Expand All @@ -103,7 +103,7 @@ export async function SiteHeader() {
buttonVariants({
variant: "ghost",
}),
"w-9 px-0"
"w-9 px-0",
)}
>
<Icons.gitHub className="size-4" />
Expand All @@ -120,7 +120,7 @@ export async function SiteHeader() {
buttonVariants({
variant: "ghost",
}),
"w-9 px-0"
"w-9 px-0",
)}
>
<Icons.twitter className="size-4 fill-current" />
Expand Down
4 changes: 2 additions & 2 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const buttonVariants = cva(
variant: "default",
size: "default",
},
}
},
);

export interface ButtonProps
Expand All @@ -54,7 +54,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
{...props}
/>
);
}
},
);
Button.displayName = "Button";

Expand Down
10 changes: 5 additions & 5 deletions registry/default/magicui/dock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DEFAULT_MAGNIFICATION = 60;
const DEFAULT_DISTANCE = 140;

const dockVariants = cva(
"supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max gap-2 rounded-2xl border p-2 backdrop-blur-md"
"supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max gap-2 rounded-2xl border p-2 backdrop-blur-md",
);

const Dock = React.forwardRef<HTMLDivElement, DockProps>(
Expand All @@ -31,7 +31,7 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>(
direction = "bottom",
...props
},
ref
ref,
) => {
const mouseX = useMotionValue(Infinity);

Expand Down Expand Up @@ -64,7 +64,7 @@ const Dock = React.forwardRef<HTMLDivElement, DockProps>(
{renderChildren()}
</motion.div>
);
}
},
);

Dock.displayName = "Dock";
Expand Down Expand Up @@ -99,7 +99,7 @@ const DockIcon = ({
let widthSync = useTransform(
distanceCalc,
[-distance, 0, distance],
[40, magnification, 40]
[40, magnification, 40],
);

let width = useSpring(widthSync, {
Expand All @@ -114,7 +114,7 @@ const DockIcon = ({
style={{ width }}
className={cn(
"flex aspect-square cursor-pointer items-center justify-center rounded-full",
className
className,
)}
{...props}
>
Expand Down

0 comments on commit 5a3a526

Please sign in to comment.