mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-16 02:23:02 +03:00
bump react-i18next to 18 and fix i18next 27 types
react-i18next 18 peers i18next >= 27.0.1, so the two move together. i18next 27's TFunction no longer fits the hand-written t signatures in the config form, and it rejects undefined as the options argument.
This commit is contained in:
@@ -44,7 +44,9 @@ export function ConfigMessageBanner({ messages }: ConfigMessageBannerProps) {
|
||||
className="flex items-center [&>svg+div]:translate-y-0 [&>svg]:static [&>svg~*]:pl-2"
|
||||
>
|
||||
<SeverityIcon severity={msg.severity} />
|
||||
<AlertDescription>{t(msg.messageKey, msg.values)}</AlertDescription>
|
||||
<AlertDescription>
|
||||
{t(msg.messageKey, msg.values ?? {})}
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user