chore: remove estimate option from my issues (#839)

This commit is contained in:
Aaryan Khandelwal 2023-04-17 12:00:30 +05:30 committed by GitHub
parent 3e436179fe
commit ac98381f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>