Skip to content

Commit

Permalink
fix: translation function to component in ShowPost page notification
Browse files Browse the repository at this point in the history
  • Loading branch information
indyteo committed Sep 10, 2024
1 parent 114377b commit a95b7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/pages/ShowPost/ShowPost.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import IconX from "@fider/assets/images/heroicons-x.svg"
import IconPencilAlt from "@fider/assets/images/heroicons-pencil-alt.svg"
import IconCheck from "@fider/assets/images/heroicons-check.svg"
import { HStack, VStack } from "@fider/components/layout"
import { t, Trans } from "@lingui/macro"
import { Trans } from "@lingui/macro"

interface ShowPostPageProps {
post: Post
Expand Down Expand Up @@ -133,7 +133,7 @@ export default class ShowPostPage extends React.Component<ShowPostPageProps, Sho
} else {
clearUrlHash(true)
}
notify.error(t({ id: "showpost.comment.unknownhighlighted", message: `Unknown comment ID #${id}` }, id))
notify.error(<Trans id="showpost.comment.unknownhighlighted">Unknown comment ID #{id}</Trans>)
highlightedComment = undefined
}
}
Expand Down

0 comments on commit a95b7d6

Please sign in to comment.