setSelected(item)}
>
|
@@ -2337,7 +2340,7 @@ function FeedbackInboxSection({ id }: { id: string }) {
|
|
-
+ |
{item.subject}
|
@@ -2379,9 +2382,16 @@ function FeedbackInboxSection({ id }: { id: string }) {
);
}
-function FeedbackCategoryBadge({ category }: { category: FeedbackCategoryType }) {
+function FeedbackCategoryBadge({
+ category,
+}: {
+ category: FeedbackCategoryType;
+}) {
const { t } = useTranslations();
- const map: Record = {
+ const map: Record<
+ FeedbackCategoryType,
+ { label: string; className: string }
+ > = {
BUG: {
label: t("admin.feedback.categoryBug"),
className: "bg-red-500/15 text-red-400 border-red-500/30",
@@ -2400,7 +2410,9 @@ function FeedbackCategoryBadge({ category }: { category: FeedbackCategoryType })
},
};
const cfg = map[category];
- return {cfg.label};
+ return (
+ {cfg.label}
+ );
}
function FeedbackDetailDialog({
@@ -2487,11 +2499,12 @@ function FeedbackDetailDialog({
const url = typeof meta.url === "string" ? meta.url : null;
const locale = typeof meta.locale === "string" ? meta.locale : null;
const userAgent = typeof meta.userAgent === "string" ? meta.userAgent : null;
- const appVersion = typeof meta.appVersion === "string" ? meta.appVersion : null;
+ const appVersion =
+ typeof meta.appVersion === "string" ? meta.appVersion : null;
return (
|