mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
refactor: switched priority null -> 'none' (#2166)
This commit is contained in:
parent
e58b76c8a6
commit
23e62c83eb
@ -52,7 +52,7 @@ const defaultValues: Partial<IIssue> = {
|
||||
estimate_point: null,
|
||||
state: "",
|
||||
parent: null,
|
||||
priority: null,
|
||||
priority: "none",
|
||||
assignees: [],
|
||||
assignees_list: [],
|
||||
labels: [],
|
||||
|
@ -40,7 +40,7 @@ export const IssuePrioritySelect: React.FC<Props> = ({ value, onChange }) => (
|
||||
<span>
|
||||
<PriorityIcon priority={priority} />
|
||||
</span>
|
||||
<span className="capitalize">{priority ?? "None"}</span>
|
||||
<span className="capitalize">{priority}</span>
|
||||
</div>
|
||||
</div>
|
||||
</CustomSelect.Option>
|
||||
|
@ -39,7 +39,7 @@ export const PrioritySelect: React.FC<Props> = (props) => {
|
||||
<WebViewModal.Options
|
||||
options={
|
||||
PRIORITIES?.map((priority) => ({
|
||||
label: priority ? capitalizeFirstLetter(priority) : "None",
|
||||
label: capitalizeFirstLetter(priority),
|
||||
value: priority,
|
||||
checked: priority === value,
|
||||
onClick: () => {
|
||||
|
@ -21,7 +21,7 @@ export const GROUP_CHOICES = {
|
||||
cancelled: "Cancelled",
|
||||
};
|
||||
|
||||
export const PRIORITIES: TIssuePriorities[] = ["urgent", "high", "medium", "low", null];
|
||||
export const PRIORITIES: TIssuePriorities[] = ["urgent", "high", "medium", "low", "none"];
|
||||
|
||||
export const MONTHS = [
|
||||
"January",
|
||||
|
2
web/types/issues.d.ts
vendored
2
web/types/issues.d.ts
vendored
@ -248,4 +248,4 @@ export interface IIssueViewProps {
|
||||
properties: Properties;
|
||||
}
|
||||
|
||||
export type TIssuePriorities = "urgent" | "high" | "medium" | "low" | null;
|
||||
export type TIssuePriorities = "urgent" | "high" | "medium" | "low" | "none";
|
||||
|
Loading…
Reference in New Issue
Block a user