Improve error handling / roundtrip behavior
Summary: Slightly improves the support form interactions / code flow: * When uploading, input fields are hidden * WHen upload succeeded: Show link to final post * When upload succeeded: be able to start a new bug report * Styled error messages, and unified error flow * Don't support report if errors occurred Reviewed By: priteshrnandgaonkar Differential Revision: D18779791 fbshipit-source-id: 28e873d0509865c66d861fe9cedb62a31f0e8bae
This commit is contained in:
committed by
Facebook Github Bot
parent
3e8a026618
commit
b1fb67c9c4
@@ -25,6 +25,7 @@ StyledLink.displayName = 'Link:StyledLink';
|
||||
export default class Link extends Component<{
|
||||
href: string;
|
||||
children?: React.ReactNode;
|
||||
style?: React.CSSProperties;
|
||||
}> {
|
||||
onClick = () => {
|
||||
shell.openExternal(this.props.href);
|
||||
@@ -32,7 +33,7 @@ export default class Link extends Component<{
|
||||
|
||||
render() {
|
||||
return (
|
||||
<StyledLink onClick={this.onClick}>
|
||||
<StyledLink onClick={this.onClick} style={this.props.style}>
|
||||
{this.props.children || this.props.href}
|
||||
</StyledLink>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user