[WEB-2433] chore-Update name of the Layout (#5661)

* Updated layout names

* Corrected character casing for titles
This commit is contained in:
Mihir 2024-10-08 16:44:50 +05:30 committed by GitHub
parent 5fb7e98b7c
commit 6bf0e27b66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 14 deletions

View file

@ -29,7 +29,7 @@ export const CycleIssuesMobileHeader = () => {
const { getCycleById } = useCycle(); const { getCycleById } = useCycle();
const layouts = [ const layouts = [
{ key: "list", title: "List", icon: List }, { key: "list", title: "List", icon: List },
{ key: "kanban", title: "Kanban", icon: Kanban }, { key: "kanban", title: "Board", icon: Kanban },
{ key: "calendar", title: "Calendar", icon: Calendar }, { key: "calendar", title: "Calendar", icon: Calendar },
]; ];

View file

@ -28,7 +28,7 @@ import { useIssues, useLabel, useMember, useProject, useProjectState } from "@/h
export const ProjectIssuesMobileHeader = observer(() => { export const ProjectIssuesMobileHeader = observer(() => {
const layouts = [ const layouts = [
{ key: "list", title: "List", icon: List }, { key: "list", title: "List", icon: List },
{ key: "kanban", title: "Kanban", icon: Kanban }, { key: "kanban", title: "Board", icon: Kanban },
{ key: "calendar", title: "Calendar", icon: Calendar }, { key: "calendar", title: "Calendar", icon: Calendar },
]; ];
const [analyticsModal, setAnalyticsModal] = useState(false); const [analyticsModal, setAnalyticsModal] = useState(false);

View file

@ -31,7 +31,7 @@ export const ModuleIssuesMobileHeader = observer(() => {
const { getModuleById } = useModule(); const { getModuleById } = useModule();
const layouts = [ const layouts = [
{ key: "list", title: "List", icon: List }, { key: "list", title: "List", icon: List },
{ key: "kanban", title: "Kanban", icon: Kanban }, { key: "kanban", title: "Board", icon: Kanban },
{ key: "calendar", title: "Calendar", icon: Calendar }, { key: "calendar", title: "Calendar", icon: Calendar },
]; ];
const { workspaceSlug, projectId, moduleId } = useParams() as { const { workspaceSlug, projectId, moduleId } = useParams() as {

View file

@ -40,12 +40,12 @@ export const CYCLE_VIEW_LAYOUTS: {
{ {
key: "board", key: "board",
icon: LayoutGrid, icon: LayoutGrid,
title: "Grid layout", title: "Gallery layout",
}, },
{ {
key: "gantt", key: "gantt",
icon: GanttChartSquare, icon: GanttChartSquare,
title: "Gantt layout", title: "Timeline layout",
}, },
]; ];

View file

@ -156,24 +156,24 @@ export const ISSUE_EXTRA_OPTIONS: {
]; ];
export const ISSUE_LAYOUT_MAP = { export const ISSUE_LAYOUT_MAP = {
[EIssueLayoutTypes.LIST]: { key: EIssueLayoutTypes.LIST, title: "List Layout", label: "List", icon: List }, [EIssueLayoutTypes.LIST]: { key: EIssueLayoutTypes.LIST, title: "List layout", label: "List", icon: List },
[EIssueLayoutTypes.KANBAN]: { key: EIssueLayoutTypes.KANBAN, title: "Kanban Layout", label: "Kanban", icon: Kanban }, [EIssueLayoutTypes.KANBAN]: { key: EIssueLayoutTypes.KANBAN, title: "Board layout", label: "Board", icon: Kanban },
[EIssueLayoutTypes.CALENDAR]: { [EIssueLayoutTypes.CALENDAR]: {
key: EIssueLayoutTypes.CALENDAR, key: EIssueLayoutTypes.CALENDAR,
title: "Calendar Layout", title: "Calendar layout",
label: "Calendar", label: "Calendar",
icon: Calendar, icon: Calendar,
}, },
[EIssueLayoutTypes.SPREADSHEET]: { [EIssueLayoutTypes.SPREADSHEET]: {
key: EIssueLayoutTypes.SPREADSHEET, key: EIssueLayoutTypes.SPREADSHEET,
title: "Spreadsheet Layout", title: "Table layout",
label: "Spreadsheet", label: "Table",
icon: Sheet, icon: Sheet,
}, },
[EIssueLayoutTypes.GANTT]: { [EIssueLayoutTypes.GANTT]: {
key: EIssueLayoutTypes.GANTT, key: EIssueLayoutTypes.GANTT,
title: "Gantt Chart Layout", title: "Timeline layout",
label: "Gantt", label: "Timeline",
icon: GanttChartSquare, icon: GanttChartSquare,
}, },
}; };

View file

@ -62,12 +62,12 @@ export const MODULE_VIEW_LAYOUTS: { key: TModuleLayoutOptions; icon: any; title:
{ {
key: "board", key: "board",
icon: LayoutGrid, icon: LayoutGrid,
title: "Grid layout", title: "Gallery layout",
}, },
{ {
key: "gantt", key: "gantt",
icon: GanttChartSquare, icon: GanttChartSquare,
title: "Gantt layout", title: "Timeline layout",
}, },
]; ];