mirror of
				https://github.com/i701/sarlink-portal.git
				synced 2025-11-04 00:16:59 +00:00 
			
		
		
		
	style: add skeletons to paymentId and deviceId pages ♻️
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and Push Docker Images / Build and Push Docker Images (push) Successful in 9m13s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and Push Docker Images / Build and Push Docker Images (push) Successful in 9m13s
				
			This commit is contained in:
		@@ -2,21 +2,24 @@ import DevicesTableSkeleton from "@/components/device-table-skeleton";
 | 
			
		||||
import { Skeleton } from "@/components/ui/skeleton";
 | 
			
		||||
 | 
			
		||||
export default function LoadingComponent() {
 | 
			
		||||
	return (
 | 
			
		||||
		<div>
 | 
			
		||||
			<div className="flex justify-between items-center border rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
 | 
			
		||||
				<Skeleton className="w-48 h-8" />
 | 
			
		||||
				<Skeleton className="w-20 h-8" />
 | 
			
		||||
			</div>
 | 
			
		||||
			<div
 | 
			
		||||
				id="user-filters"
 | 
			
		||||
				className=" pb-4 gap-4 flex sm:flex-row flex-col items-start justify-endO"
 | 
			
		||||
			>
 | 
			
		||||
				<DevicesTableSkeleton
 | 
			
		||||
					headers={["Device Name", "Mac Address", "Vendor", "#"]}
 | 
			
		||||
					length={10}
 | 
			
		||||
				/>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	);
 | 
			
		||||
  return (
 | 
			
		||||
    <div>
 | 
			
		||||
      <div className="flex justify-between items-center border rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
 | 
			
		||||
        <Skeleton className="w-48 h-8" />
 | 
			
		||||
        <Skeleton className="w-20 h-8" />
 | 
			
		||||
      </div>
 | 
			
		||||
      <div>
 | 
			
		||||
        <Skeleton className="w-full rounded-md mt-5 mb-6 sm:w-48 h-9" />
 | 
			
		||||
      </div>
 | 
			
		||||
      <div
 | 
			
		||||
        id="user-filters"
 | 
			
		||||
        className=" pb-4 gap-4 flex sm:flex-row flex-col items-start justify-endO"
 | 
			
		||||
      >
 | 
			
		||||
        <DevicesTableSkeleton
 | 
			
		||||
          headers={["Device Name", "Mac Address", "Vendor", "#"]}
 | 
			
		||||
          length={10}
 | 
			
		||||
        />
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,24 @@ import DevicesTableSkeleton from "@/components/device-table-skeleton";
 | 
			
		||||
import { Skeleton } from "@/components/ui/skeleton";
 | 
			
		||||
 | 
			
		||||
export default function LoadingComponent() {
 | 
			
		||||
	return (
 | 
			
		||||
		<div>
 | 
			
		||||
			<div className="flex justify-between items-center border rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
 | 
			
		||||
				<Skeleton className="w-48 h-8" />
 | 
			
		||||
				<Skeleton className="w-20 h-8" />
 | 
			
		||||
			</div>
 | 
			
		||||
			<div
 | 
			
		||||
				id="user-filters"
 | 
			
		||||
				className=" pb-4 gap-4 flex sm:flex-row flex-col items-start justify-endO"
 | 
			
		||||
			>
 | 
			
		||||
				<DevicesTableSkeleton
 | 
			
		||||
					headers={["Details", "Status", "Amount"]}
 | 
			
		||||
					length={10}
 | 
			
		||||
				/>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	);
 | 
			
		||||
  return (
 | 
			
		||||
    <div>
 | 
			
		||||
      <div className="flex justify-between items-center border rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
 | 
			
		||||
        <Skeleton className="w-48 h-8" />
 | 
			
		||||
        <Skeleton className="w-20 h-8" />
 | 
			
		||||
      </div>
 | 
			
		||||
      <div>
 | 
			
		||||
        <Skeleton className="w-full rounded-md mt-5 mb-6 sm:w-48 h-9" />
 | 
			
		||||
      </div>
 | 
			
		||||
      <div
 | 
			
		||||
        id="user-filters"
 | 
			
		||||
        className=" pb-4 gap-4 flex sm:flex-row flex-col items-start justify-endO"
 | 
			
		||||
      >
 | 
			
		||||
        <DevicesTableSkeleton
 | 
			
		||||
          headers={["Details", "Status", "Amount"]}
 | 
			
		||||
          length={10}
 | 
			
		||||
        />
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user