mirror of
https://github.com/makeplane/plane.git
synced 2026-02-11 16:49:31 -06:00
[RANTS-57] chore: replace target date with due date in work item filters dropdown (#6806)
This commit is contained in:
committed by
GitHub
parent
fe04e5a292
commit
ef108839c4
@@ -12,7 +12,7 @@ type Props = {
|
||||
searchQuery: string;
|
||||
};
|
||||
|
||||
export const FilterTargetDate: React.FC<Props> = observer((props) => {
|
||||
export const FilterDueDate: React.FC<Props> = observer((props) => {
|
||||
const { appliedFilters, handleUpdate, searchQuery } = props;
|
||||
|
||||
const [previewEnabled, setPreviewEnabled] = useState(true);
|
||||
@@ -46,7 +46,7 @@ export const FilterTargetDate: React.FC<Props> = observer((props) => {
|
||||
/>
|
||||
)}
|
||||
<FilterHeader
|
||||
title={`Target date${appliedFiltersCount > 0 ? ` (${appliedFiltersCount})` : ""}`}
|
||||
title={`Due date${appliedFiltersCount > 0 ? ` (${appliedFiltersCount})` : ""}`}
|
||||
isPreviewEnabled={previewEnabled}
|
||||
handleIsPreviewEnabled={() => setPreviewEnabled(!previewEnabled)}
|
||||
/>
|
||||
@@ -18,13 +18,13 @@ import {
|
||||
FilterAssignees,
|
||||
FilterMentions,
|
||||
FilterCreatedBy,
|
||||
FilterDueDate,
|
||||
FilterLabels,
|
||||
FilterPriority,
|
||||
FilterProjects,
|
||||
FilterStartDate,
|
||||
FilterState,
|
||||
FilterStateGroup,
|
||||
FilterTargetDate,
|
||||
FilterCycle,
|
||||
FilterModule,
|
||||
FilterIssueGrouping,
|
||||
@@ -276,7 +276,7 @@ export const FilterSelection: React.FC<Props> = observer((props) => {
|
||||
{/* target_date */}
|
||||
{isFilterEnabled("target_date") && (
|
||||
<div className="py-2">
|
||||
<FilterTargetDate
|
||||
<FilterDueDate
|
||||
appliedFilters={filters.target_date ?? null}
|
||||
handleUpdate={(val) => handleFiltersUpdate("target_date", val)}
|
||||
searchQuery={filtersSearchQuery}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export * from "./assignee";
|
||||
export * from "./mentions";
|
||||
export * from "./created-by";
|
||||
export * from "./due-date";
|
||||
export * from "./filters-selection";
|
||||
export * from "./labels";
|
||||
export * from "./priority";
|
||||
@@ -10,4 +11,3 @@ export * from "./state-group";
|
||||
export * from "./state";
|
||||
export * from "./cycle";
|
||||
export * from "./module";
|
||||
export * from "./target-date";
|
||||
|
||||
Reference in New Issue
Block a user