|
|
@@ -20,6 +20,7 @@ type SearchParamNames = keyof SearchQuery; |
|
|
|
const ClaimSearch: React.FC<Props> = ({ claims }) => { |
|
|
|
const { t } = useTranslation(); |
|
|
|
|
|
|
|
console.log(claims) |
|
|
|
// If claim searching is done on the server-side, then no need for this. |
|
|
|
const [filteredClaims, setFilteredClaims] = useState(claims); |
|
|
|
|
|
|
@@ -58,7 +59,7 @@ const ClaimSearch: React.FC<Props> = ({ claims }) => { |
|
|
|
{ name: "created", label: t("Creation Date"), type: "date" }, |
|
|
|
{ name: "code", label: t("Claim Code") }, |
|
|
|
// { name: "project", label: t("Related Project Name") }, |
|
|
|
{ name: "amount", label: t("Amount (HKD)") }, |
|
|
|
{ name: "amount", label: t("Amount"), type: "money" }, |
|
|
|
{ name: "type", label: t("Expense Type"), needTranslation: true }, |
|
|
|
{ name: "status", label: t("Status"), needTranslation: true }, |
|
|
|
{ name: "remarks", label: t("Remarks") }, |
|
|
|