Fix <YesNoButton> (#5711)

- Add missing destructuring
This commit is contained in:
Oliver 2023-10-17 00:54:55 +11:00 committed by GitHub
parent 80a170d93c
commit d98b1bb2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import { t } from '@lingui/macro';
import { Badge } from '@mantine/core';
export function YesNoButton(value: any) {
export function YesNoButton({ value }: { value: any }) {
const bool =
String(value).toLowerCase().trim() in ['true', '1', 't', 'y', 'yes'];