🏷️(frontend) make toast props readonly for enhanced type safety

Refactor toast component props to use readonly TypeScript modifiers,
preventing accidental mutations and strengthening type safety.
This commit is contained in:
lebaudantoine
2025-08-28 23:51:17 +02:00
committed by aleb_the_flash
parent ff9487eb2f
commit 00a3c0a37c
9 changed files with 18 additions and 9 deletions
@@ -19,7 +19,7 @@ const ClickableToast = styled(RACButton, {
},
})
export function ToastJoined({ state, ...props }: ToastProps) {
export function ToastJoined({ state, ...props }: Readonly<ToastProps>) {
const { t } = useTranslation('notifications')
const ref = useRef(null)
const { toastProps, contentProps, titleProps, closeButtonProps } = useToast(