[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:
parent
1b9033993d
commit
1953d6fe3a
30 changed files with 84 additions and 42 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue