metric page loader

This commit is contained in:
Nate Kelley 2025-03-27 16:07:44 -06:00
parent bd18614e77
commit 43a883ea67
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import { FileIndeterminateLoader } from '@/components/features/FileIndeterminateLoader';
export default function Loading() {
return <div>Loading this metric...</div>;
return <FileIndeterminateLoader />;
}

View File

@ -1,5 +1,6 @@
import { MetricController } from '@/controllers/MetricController';
import { AppAssetCheckLayout } from '@/layouts/AppAssetCheckLayout';
import { timeout } from '@/lib';
export default async function Page(props: {
params: Promise<{ chatId: string; metricId: string }>;

View File

@ -0,0 +1,5 @@
import { FileIndeterminateLoader } from '@/components/features/FileIndeterminateLoader';
export default function Loading() {
return <FileIndeterminateLoader />;
}

View File

@ -4,7 +4,10 @@ import React from 'react';
export const FileIndeterminateLoader: React.FC = () => {
return (
<div className="relative z-10 h-0 overflow-visible">
<IndeterminateLinearLoader className="absolute top-0 left-0 w-full" />
<IndeterminateLinearLoader
className="absolute top-0 left-0 w-full"
trackColor="transparent"
/>
</div>
);
};