[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,6 +1,7 @@
"use client";
import React from "react";
import range from "lodash/range";
import { observer } from "mobx-react";
import Link from "next/link";
import { useParams, usePathname } from "next/navigation";
@ -29,7 +30,7 @@ export const ProjectSettingsSidebar = observer(() => {
<div className="flex flex-col gap-2">
<span className="text-xs font-semibold text-custom-sidebar-text-400">SETTINGS</span>
<Loader className="flex w-full flex-col gap-2">
{[...Array(8)].map((index) => (
{range(8).map((index) => (
<Loader.Item key={index} height="34px" />
))}
</Loader>