diff --git a/src/chrome/ShareSheetErrorList.tsx b/src/chrome/ShareSheetErrorList.tsx index 761009d3f..e4f6a8eb1 100644 --- a/src/chrome/ShareSheetErrorList.tsx +++ b/src/chrome/ShareSheetErrorList.tsx @@ -8,7 +8,7 @@ */ import React, {PureComponent} from 'react'; -import {FlexColumn, Text, styled} from '../ui'; +import {Text, styled, Info, VBox} from '../ui'; type Props = { errors: Array; @@ -22,25 +22,6 @@ const ErrorMessage = styled(Text)({ lineHeight: 1.35, }); -const Padder = styled('div')( - ({ - paddingLeft, - paddingRight, - paddingBottom, - paddingTop, - }: { - paddingLeft?: number; - paddingRight?: number; - paddingBottom?: number; - paddingTop?: number; - }) => ({ - paddingLeft: paddingLeft || 0, - paddingRight: paddingRight || 0, - paddingBottom: paddingBottom || 0, - paddingTop: paddingTop || 0, - }), -); - const Title = styled(Text)({ marginBottom: 6, }); @@ -65,18 +46,16 @@ export default class Popover extends PureComponent { return null; } return ( - <> - - - - The following errors occurred while exporting your data - - {this.props.errors.map((e: Error) => ( - {formatError(e)} - ))} - - - + + + + The following errors occurred while exporting your data + + {this.props.errors.map((e: Error) => ( + {formatError(e)} + ))} + + ); } } diff --git a/src/ui/components/Link.tsx b/src/ui/components/Link.tsx index 93302a32d..6a623c85e 100644 --- a/src/ui/components/Link.tsx +++ b/src/ui/components/Link.tsx @@ -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 ( - + {this.props.children || this.props.href} );