Fix more react warnings
Summary: Fixing random React errors as I encountered them. Reviewed By: jknoxville Differential Revision: D18397950 fbshipit-source-id: cb73fcd6cd9aac2cd53c982e5a58760be12a10ca
This commit is contained in:
committed by
Facebook Github Bot
parent
19937c4b83
commit
93655d39b8
@@ -163,35 +163,37 @@ export default class Popover extends PureComponent<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
return [
|
||||
<Anchor src="./anchor.svg" key="anchor" />,
|
||||
<PopoverContainer innerRef={this._setRef} key="popup">
|
||||
{this.props.sections.map(section => {
|
||||
if (section.items.length > 0) {
|
||||
return (
|
||||
<Section key={section.title}>
|
||||
<Heading>{section.title}</Heading>
|
||||
{section.items.map(item => (
|
||||
<PopoverItem key={item.title}>
|
||||
<ItemImage>{item.icon}</ItemImage>
|
||||
<ItemContent>
|
||||
<ItemTitle>{item.title}</ItemTitle>
|
||||
<ItemSubtitle>{item.subtitle}</ItemSubtitle>
|
||||
</ItemContent>
|
||||
{item.onClick && (
|
||||
<Action onClick={item.onClick} compact={true}>
|
||||
Run
|
||||
</Action>
|
||||
)}
|
||||
</PopoverItem>
|
||||
))}
|
||||
</Section>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
})}
|
||||
</PopoverContainer>,
|
||||
];
|
||||
return (
|
||||
<>
|
||||
<Anchor src="./anchor.svg" key="anchor" />
|
||||
<PopoverContainer innerRef={this._setRef} key="popup">
|
||||
{this.props.sections.map(section => {
|
||||
if (section.items.length > 0) {
|
||||
return (
|
||||
<Section key={section.title}>
|
||||
<Heading>{section.title}</Heading>
|
||||
{section.items.map(item => (
|
||||
<PopoverItem key={item.title}>
|
||||
<ItemImage>{item.icon}</ItemImage>
|
||||
<ItemContent>
|
||||
<ItemTitle>{item.title}</ItemTitle>
|
||||
<ItemSubtitle>{item.subtitle}</ItemSubtitle>
|
||||
</ItemContent>
|
||||
{item.onClick && (
|
||||
<Action onClick={item.onClick} compact={true}>
|
||||
Run
|
||||
</Action>
|
||||
)}
|
||||
</PopoverItem>
|
||||
))}
|
||||
</Section>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
})}
|
||||
</PopoverContainer>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +228,10 @@ export default class ShareSheetExportUrl extends Component<Props, State> {
|
||||
used to share with other Flipper users. Opening it will
|
||||
import the data from your trace.
|
||||
</InfoText>
|
||||
<Copy value={(result as DataExportResult).flipperUrl} />
|
||||
<Copy
|
||||
value={(result as DataExportResult).flipperUrl}
|
||||
readOnly
|
||||
/>
|
||||
<InfoText>
|
||||
When sharing your Flipper link, consider that the captured
|
||||
data might contain sensitve information like access tokens
|
||||
|
||||
Reference in New Issue
Block a user