Skip to content

Commit

Permalink
DataDescriptor BigInt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Hamdullah Shah authored and facebook-github-bot committed Aug 8, 2023
1 parent 24cfd74 commit 0fdd901
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ class DataDescriptionContainer extends PureComponent<{

case 'number':
return <NumberValue>{+val}</NumberValue>;

case 'bigint':
return <NumberValue>{val.toString()}</NumberValue>;
case 'color': {
const colorInfo = parseColor(val);
if (typeof val === 'number' && val === 0) {
Expand Down

0 comments on commit 0fdd901

Please sign in to comment.