mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
parent
80a170d93c
commit
d98b1bb2c7
@ -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'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user