diff --git a/app/javascript/mastodon/components/formatted_date.tsx b/app/javascript/mastodon/components/formatted_date.tsx index cc927b08737..5514f370bcc 100644 --- a/app/javascript/mastodon/components/formatted_date.tsx +++ b/app/javascript/mastodon/components/formatted_date.tsx @@ -2,12 +2,13 @@ import type { ComponentProps } from 'react'; import { FormattedDate } from 'react-intl'; -export const FormattedDateWrapper = ( - props: ComponentProps & { className?: string }, -) => ( +export const FormattedDateWrapper = ({ + className, + ...props +}: ComponentProps & { className?: string }) => ( {(date) => ( -