mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	| @@ -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