diff --git a/src/app/[orgId]/settings/logs/request/page.tsx b/src/app/[orgId]/settings/logs/request/page.tsx index a4d1dec37..d1300f73f 100644 --- a/src/app/[orgId]/settings/logs/request/page.tsx +++ b/src/app/[orgId]/settings/logs/request/page.tsx @@ -21,6 +21,7 @@ import { useMemo, useState, useTransition } from "react"; import { useStoredPageSize } from "@app/hooks/useStoredPageSize"; import type { QueryRequestAuditLogResponse } from "@server/routers/auditLogs/types"; import { ColumnFilterButton } from "@app/components/ColumnFilterButton"; +import { countryCodeToFlagEmoji } from "@app/lib/countryCodeToFlagEmoji"; export default function GeneralPage() { const router = useRouter(); @@ -339,7 +340,7 @@ export default function GeneralPage() { options={filterAttributes.locations.map( (location) => ({ value: location, - label: location + label: `${location} ${countryCodeToFlagEmoji(location)}` }) )} selectedValue={filters.location} @@ -359,7 +360,8 @@ export default function GeneralPage() { {row.original.location ? ( - {row.original.location} + {row.original.location}{" "} + {countryCodeToFlagEmoji(row.original.location)} ) : ( diff --git a/src/components/ColumnFilterButton.tsx b/src/components/ColumnFilterButton.tsx index 5945dc887..f72b96277 100644 --- a/src/components/ColumnFilterButton.tsx +++ b/src/components/ColumnFilterButton.tsx @@ -21,7 +21,7 @@ import { useTranslations } from "next-intl"; interface FilterOption { value: string; - label: string; + label: React.ReactNode; } interface ColumnFilterButtonProps { @@ -101,7 +101,7 @@ export function ColumnFilterButton({ {options.map((option) => ( { onValueChange( selectedValue === option.value