mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* remove old page component * add test to check initDashboard is only called once (prevent variables loading twice) * add help node * update unit tests * remove last mentions of topnav * fix unit tests * remove unused props from ButtonRow interface * remove prop from test
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
// Libraries
|
|
import React from 'react';
|
|
|
|
import PageLoader from '../PageLoader/PageLoader';
|
|
|
|
interface Props {
|
|
isLoading?: boolean;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const PageContents = ({ isLoading, children, className }: Props) => {
|
|
let content = className ? <div className={className}>{children}</div> : children;
|
|
|
|
return <>{isLoading ? <PageLoader /> : content}</>;
|
|
};
|