mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: remove estimate option from my issues (#839)
This commit is contained in:
parent
3e436179fe
commit
ac98381f23
@ -72,20 +72,24 @@ const MyIssuesPage: NextPage = () => {
|
|||||||
<div className="relative flex flex-col gap-1">
|
<div className="relative flex flex-col gap-1">
|
||||||
<h4 className="text-base text-gray-600">Properties</h4>
|
<h4 className="text-base text-gray-600">Properties</h4>
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
{Object.keys(properties).map((key) => (
|
{Object.keys(properties).map((key) => {
|
||||||
<button
|
if (key === "estimate") return null;
|
||||||
key={key}
|
|
||||||
type="button"
|
return (
|
||||||
className={`rounded border border-theme px-2 py-1 text-xs capitalize ${
|
<button
|
||||||
properties[key as keyof Properties]
|
key={key}
|
||||||
? "border-theme bg-theme text-white"
|
type="button"
|
||||||
: ""
|
className={`rounded border border-theme px-2 py-1 text-xs capitalize ${
|
||||||
}`}
|
properties[key as keyof Properties]
|
||||||
onClick={() => setProperties(key as keyof Properties)}
|
? "border-theme bg-theme text-white"
|
||||||
>
|
: ""
|
||||||
{key === "key" ? "ID" : replaceUnderscoreIfSnakeCase(key)}
|
}`}
|
||||||
</button>
|
onClick={() => setProperties(key as keyof Properties)}
|
||||||
))}
|
>
|
||||||
|
{key === "key" ? "ID" : replaceUnderscoreIfSnakeCase(key)}
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user