[WEB-2762] chore: loader code refactor (#5992)

* chore: loader code refactor

* chore: code refactor

* chore: code refactor

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2024-12-02 13:24:01 +05:30 committed by GitHub
parent 1b9033993d
commit 1953d6fe3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 84 additions and 42 deletions

View file

@ -1,9 +1,10 @@
import range from "lodash/range";
import React from "react";
export const DropdownOptionsLoader = () => (
<div className="flex flex-col gap-1 animate-pulse">
{Array.from({ length: 6 }, (_, i) => (
<div key={i} className="flex h-[1.925rem] w-full rounded px-1 py-1.5 bg-custom-background-90" />
{range(6).map((index) => (
<div key={index} className="flex h-[1.925rem] w-full rounded px-1 py-1.5 bg-custom-background-90" />
))}
</div>
);