Provide the capability to copy crash name and reason

Summary: This diff allows user to copy crash name and crash reason in the clipboard

Reviewed By: jknoxville

Differential Revision: D14594212

fbshipit-source-id: 88a99af70e0e1aa5950e144a9072a8d96d7d3fc3
This commit is contained in:
Pritesh Nandgaonkar
2019-03-27 08:42:48 -07:00
committed by Facebook Github Bot
parent c422829beb
commit 9dbbae91d2

View File

@@ -459,7 +459,17 @@ class HeaderRow extends Component<HeaderRowProps> {
<Padder paddingLeft={8}>
<FlexRow>
<Title>{title}</Title>
<Value code={true}>{value}</Value>
<ContextMenu
items={[
{
label: 'copy',
click: () => {
clipboard.writeText(value);
},
},
]}>
<Value code={true}>{value}</Value>
</ContextMenu>
</FlexRow>
</Padder>
<Line />