DataDescriptor BigInt

Summary: The `DataDescriptionType` accepts the `BigInt` type but it doesn't render. Added the `case` for that and reuse the `NumberValue` tag for it.

Reviewed By: aigoncharov

Differential Revision: D48152012

fbshipit-source-id: 32ebc8a37df34d57b40c7ecdad331c547415b335
This commit is contained in:
Hamdullah Shah
2023-08-08 09:50:08 -07:00
committed by Facebook GitHub Bot
parent 24cfd74252
commit 0fdd901297

View File

@@ -573,7 +573,8 @@ class DataDescriptionContainer extends PureComponent<{
case 'number': case 'number':
return <NumberValue>{+val}</NumberValue>; return <NumberValue>{+val}</NumberValue>;
case 'bigint':
return <NumberValue>{val.toString()}</NumberValue>;
case 'color': { case 'color': {
const colorInfo = parseColor(val); const colorInfo = parseColor(val);
if (typeof val === 'number' && val === 0) { if (typeof val === 'number' && val === 0) {