mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-18 23:45:26 +02:00
improvements
This commit is contained in:
parent
a7eece7938
commit
e37eecda97
@ -1,18 +1,16 @@
|
||||
import {ReactElement} from "react"
|
||||
import {useNavigate} from "react-router-dom"
|
||||
import {useTranslation} from "react-i18next"
|
||||
|
||||
import {ListItemButton, ListItemText} from "@mui/material"
|
||||
|
||||
import {DecryptedReportContent} from "~/server-types"
|
||||
import {useTranslation} from "react-i18next"
|
||||
|
||||
export interface ReportInformationItemProps {
|
||||
report: DecryptedReportContent
|
||||
}
|
||||
|
||||
export default function ReportInformationItem({
|
||||
report,
|
||||
}: ReportInformationItemProps): ReactElement {
|
||||
export default function ReportInformationItem({report}: ReportInformationItemProps): ReactElement {
|
||||
const navigate = useNavigate()
|
||||
const {t} = useTranslation()
|
||||
|
||||
@ -20,7 +18,7 @@ export default function ReportInformationItem({
|
||||
<ListItemButton onClick={() => navigate(`/reports/${report.id}`)}>
|
||||
<ListItemText
|
||||
primary={
|
||||
report.messageDetails.content.subject ?? (
|
||||
report.messageDetails.content.subject || (
|
||||
<i>{t("relations.report.emailMeta.emptySubject")}</i>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user