mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 01:15:20 +00:00
1 parent
80a170d93c
commit
d98b1bb2c7
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { Badge } from '@mantine/core';
|
import { Badge } from '@mantine/core';
|
||||||
|
|
||||||
export function YesNoButton(value: any) {
|
export function YesNoButton({ value }: { value: any }) {
|
||||||
const bool =
|
const bool =
|
||||||
String(value).toLowerCase().trim() in ['true', '1', 't', 'y', 'yes'];
|
String(value).toLowerCase().trim() in ['true', '1', 't', 'y', 'yes'];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user