diff --git a/apps/app/components/gantt-chart/blocks/index.tsx b/apps/app/components/gantt-chart/blocks/index.tsx
index 98284cce8..f2d44b294 100644
--- a/apps/app/components/gantt-chart/blocks/index.tsx
+++ b/apps/app/components/gantt-chart/blocks/index.tsx
@@ -18,7 +18,7 @@ export const GanttChartBlocks: FC<{
return (
@@ -44,7 +44,7 @@ export const GanttChartBlocks: FC<{
= ({
+ border,
title,
blocks = null,
loaderTitle,
@@ -214,10 +216,12 @@ export const ChartViewRoot: FC
= ({
{/* chart title */}
-
+ {/*
{title && (
{title}
@@ -233,7 +237,7 @@ export const ChartViewRoot: FC
= ({
{blocks.length} {loaderTitle}
)}
-
+
*/}
{/* chart header */}
@@ -248,10 +252,23 @@ export const ChartViewRoot: FC = ({
)}
*/}
-
- {`${datePreview(currentViewData?.data?.startDate)} - ${datePreview(
- currentViewData?.data?.endDate
- )}`}
+ {title && (
+
+
{title}
+
+ Gantt View Beta
+
+
+ )}
+
+
+ {blocks === null ? (
+
Loading...
+ ) : (
+
+ {blocks.length} {loaderTitle}
+
+ )}
@@ -260,7 +277,7 @@ export const ChartViewRoot: FC
= ({
allViews.map((_chatView: any, _idx: any) => (
handleChartView(_chatView?.key)}
@@ -272,7 +289,7 @@ export const ChartViewRoot: FC
= ({
Today
diff --git a/apps/app/components/gantt-chart/chart/month.tsx b/apps/app/components/gantt-chart/chart/month.tsx
index 15d02c488..197ac9930 100644
--- a/apps/app/components/gantt-chart/chart/month.tsx
+++ b/apps/app/components/gantt-chart/chart/month.tsx
@@ -37,7 +37,7 @@ export const MonthChartView: FC
= () => {
diff --git a/apps/app/components/gantt-chart/root.tsx b/apps/app/components/gantt-chart/root.tsx
index 787df0e46..eb7a1b225 100644
--- a/apps/app/components/gantt-chart/root.tsx
+++ b/apps/app/components/gantt-chart/root.tsx
@@ -5,6 +5,7 @@ import { ChartViewRoot } from "./chart";
import { ChartContextProvider } from "./contexts";
type GanttChartRootProps = {
+ border: boolean;
title: null | string;
loaderTitle: string;
blocks: any;
@@ -14,6 +15,7 @@ type GanttChartRootProps = {
};
export const GanttChartRoot: FC
= ({
+ border = true,
title = null,
blocks,
loaderTitle = "blocks",
@@ -23,6 +25,7 @@ export const GanttChartRoot: FC = ({
}) => (
= ({}) => {
// rendering issues on gantt card
const GanttBlockView = ({ data }: any) => (
-
+
= ({}) => {
: [];
return (
-