diff --git a/dashboard/src/components/Skeleton/Skeleton.tsx b/dashboard/src/components/Skeleton/Skeleton.tsx index cd3a981e..b1d2ca17 100644 --- a/dashboard/src/components/Skeleton/Skeleton.tsx +++ b/dashboard/src/components/Skeleton/Skeleton.tsx @@ -1,14 +1,18 @@ -import type { ReactNode } from 'react'; +import type { ReactNode, ComponentProps } from 'react'; import { Skeleton as SkeletonComponent } from '@/components/ui/skeleton'; //to avoid name conflict we rename the import -type SkeletonProps = { +import { cn } from '@/lib/utils'; + +type SkeletonProps = ComponentProps & { children: ReactNode; }; -const Skeleton = ({ children }: SkeletonProps): JSX.Element => { +const Skeleton = ({ children, className }: SkeletonProps): JSX.Element => { return ( - + {children} ); diff --git a/dashboard/src/components/TreeListingPage/TreeListingPage.tsx b/dashboard/src/components/TreeListingPage/TreeListingPage.tsx index 84147961..c6ecaec9 100644 --- a/dashboard/src/components/TreeListingPage/TreeListingPage.tsx +++ b/dashboard/src/components/TreeListingPage/TreeListingPage.tsx @@ -90,7 +90,7 @@ const TreeListingPage = ({ inputFilter }: ITreeListingPage): JSX.Element => { ); - return ( + return data && data.length > 0 ? (
{ />
+ ) : ( +
+ +
); }; diff --git a/dashboard/src/index.css b/dashboard/src/index.css index b5c61c95..808efb25 100644 --- a/dashboard/src/index.css +++ b/dashboard/src/index.css @@ -1,3 +1,7 @@ @tailwind base; @tailwind components; @tailwind utilities; + +.remove-animate-pulse.animate-pulse { + animation: none !important; +} diff --git a/dashboard/src/locales/messages/index.ts b/dashboard/src/locales/messages/index.ts index ed20b3d6..5828cff3 100644 --- a/dashboard/src/locales/messages/index.ts +++ b/dashboard/src/locales/messages/index.ts @@ -86,6 +86,7 @@ export const messages = { 'global.missed': 'Missed', 'global.modules': 'Modules', 'global.name': 'Name', + 'global.noData': 'No data.', 'global.noDataAvailable': 'No data available', 'global.noResults': 'No results were found', 'global.none': 'None',