* chore: added code split for the analytics store * chore: done some refactor * refactor: update entity keys in analytics and translations * chore: updated the translations * refactor: simplify AnalyticsStoreV2 class by removing unnecessary constructor * feat: add AnalyticsStoreV2 class and interface for enhanced analytics functionality * feat: enhance WorkItemsModal and analytics store with isEpic functionality * feat: integrate isEpic state into TotalInsights and WorkItemsModal components * refactor: remove isEpic state from WorkItemsModalMainContent component * refactor: removed old analytics components and related services * refactor: new analytics * refactor: removed all nivo chart dependencies * chore: resolved coderabbit comments * fix: update processUrl to handle custom-work-items in peek view * feat: implement CSV export functionality in InsightTable component * feat: enhance analytics service with filter parameters and improve data handling in InsightTable * feat: add new translation keys for various statuses across multiple languages * [WEB-4246] fix: enhance analytics components to include 'isEpic' parameter for improved data fetching * chore: update yarn.lock to remove deprecated @nivo packages and clean up unused dependencies
22 lines
478 B
TypeScript
22 lines
478 B
TypeScript
import React from "react";
|
|
// plane package imports
|
|
import { cn } from "@plane/utils";
|
|
|
|
type Props = {
|
|
title: string;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
const AnalyticsWrapper: React.FC<Props> = (props) => {
|
|
const { title, children, className } = props;
|
|
|
|
return (
|
|
<div className={cn("px-6 py-4", className)}>
|
|
<h1 className={"mb-4 text-2xl font-bold md:mb-6"}>{title}</h1>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default AnalyticsWrapper;
|