Formated Files

This commit is contained in:
Ahmad 2024-02-15 20:49:19 -05:00
parent d5631b309a
commit e768d9181f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
138 changed files with 1829 additions and 1851 deletions

View file

@ -1,17 +1,17 @@
"use client";
'use client';
import { Copy, Trash } from "lucide-react";
import { useParams } from "next/navigation";
import { toast } from "sonner";
import { Copy, Trash } from 'lucide-react';
import { useParams } from 'next/navigation';
import { toast } from 'sonner';
import { Skeleton } from "@/components/ui/skeleton";
import { deleteCard } from "@/actions/delete-card";
import { Button } from "@/components/ui/button";
import { useAction } from "@/hooks/use-action";
import { copyCard } from "@/actions/copy-card";
import { Skeleton } from '@/components/ui/skeleton';
import { deleteCard } from '@/actions/delete-card';
import { Button } from '@/components/ui/button';
import { useAction } from '@/hooks/use-action';
import { copyCard } from '@/actions/copy-card';
import { CardWithList } from "@/types";
import { useCardModal } from "@/hooks/use-card-modal";
import { CardWithList } from '@/types';
import { useCardModal } from '@/hooks/use-card-modal';
interface ActionsProps {
data: CardWithList;
@ -66,26 +66,26 @@ export const Actions = ({ data }: ActionsProps) => {
};
return (
<div className="space-y-2 mt-2">
<p className="text-xs font-semibold">Actions</p>
<div className='mt-2 space-y-2'>
<p className='text-xs font-semibold'>Actions</p>
<Button
onClick={onCopy}
disabled={isLoadingCopy}
variant="gray"
className="w-full justify-start"
size="inline"
variant='gray'
className='w-full justify-start'
size='inline'
>
<Copy className="h-4 w-4 mr-2" />
<Copy className='mr-2 h-4 w-4' />
Copy
</Button>
<Button
onClick={onDelete}
disabled={isLoadingDelete}
variant="gray"
className="w-full justify-start text-destructive"
size="inline"
variant='gray'
className='w-full justify-start text-destructive'
size='inline'
>
<Trash className="h-4 w-4 mr-2" />
<Trash className='mr-2 h-4 w-4' />
Delete
</Button>
</div>
@ -94,10 +94,10 @@ export const Actions = ({ data }: ActionsProps) => {
Actions.Skeleton = function ActionsSkeleton() {
return (
<div className="space-y-2 mt-2">
<Skeleton className="w-20 h-4 bg-neutral-200" />
<Skeleton className="w-full h-8 bg-neutral-200" />
<Skeleton className="w-full h-8 bg-neutral-200" />
<div className='mt-2 space-y-2'>
<Skeleton className='h-4 w-20 bg-neutral-200' />
<Skeleton className='h-8 w-full bg-neutral-200' />
<Skeleton className='h-8 w-full bg-neutral-200' />
</div>
);
};