Skip to content

Commit

Permalink
format: Run yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 18, 2024
1 parent b287fbd commit 38c885c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const formSchema = z.object({

export default function AddLink() {
const router = useRouter();
const {setLoading} = useLoadingCard();
const { setLoading } = useLoadingCard();
const bookmarkLinkMutator = api.bookmarks.bookmarkLink.useMutation({
onMutate: () => {
setLoading(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ export default function BookmarkCardSkeleton() {
>
<ImageCardBanner src="/blur.avif" />
<ImageCardContent>
<ImageCardTitle>
</ImageCardTitle>
<ImageCardTitle></ImageCardTitle>
<ImageCardBody className="space-y-2">
<Skeleton className="h-4 w-full" />
<Skeleton className="h-4 w-full" />
<Skeleton className="h-4 w-full" />
</ImageCardBody>
<ImageCardFooter>
</ImageCardFooter>
<ImageCardFooter></ImageCardFooter>
</ImageCardContent>
</ImageCard>
);
Expand Down
8 changes: 4 additions & 4 deletions packages/web/components/ui/skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { cn } from "@/lib/utils"
import { cn } from "@/lib/utils";

function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-muted", className)}
className={cn("bg-muted animate-pulse rounded-md", className)}
{...props}
/>
)
);
}

export { Skeleton }
export { Skeleton };
4 changes: 2 additions & 2 deletions packages/web/lib/hooks/use-loading-card.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { create } from "zustand";

export const useLoadingCard = create<{
loading: boolean,
setLoading: (val: boolean) => void,
loading: boolean;
setLoading: (val: boolean) => void;
}>((set) => ({
loading: false,
setLoading: (val: boolean) => set({ loading: val }),
Expand Down

0 comments on commit 38c885c

Please sign in to comment.