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:
Michel Weststrate
2019-12-03 03:58:06 -08:00
committed by Facebook Github Bot
parent 3e8a026618
commit b1fb67c9c4
2 changed files with 13 additions and 33 deletions

View File

@@ -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>
);