Sfoglia il codice sorgente

Fix `yarn build` fail

Most likely caused by the `styled-components` module trying to set the
style using `data-test-id` prop. If `data-test-id` is null,
`styled-components` fails to set the component up.
Sergiu Miclea 8 anni fa
parent
commit
8da5e425f6

+ 1 - 1
src/components/atoms/CopyMultilineValue/index.jsx

@@ -54,7 +54,7 @@ class CopyMultineValue extends React.Component<Props> {
     return (
     return (
       <Wrapper
       <Wrapper
         onClick={() => { this.handleCopy() }}
         onClick={() => { this.handleCopy() }}
-        data-test-id={this.props['data-test-id'] || 'copyMultilineValue'}
+        data-test-id={(this.props && this.props['data-test-id']) || 'copyMultilineValue'}
       >
       >
         {this.props.value}
         {this.props.value}
         <CopyButton />
         <CopyButton />

+ 0 - 1
src/components/organisms/MainDetails/index.jsx

@@ -44,7 +44,6 @@ const ColumnsLayout = styled.div`
 `
 `
 const Column = styled.div`
 const Column = styled.div`
   ${props => StyleProps.exactWidth(props.width)}
   ${props => StyleProps.exactWidth(props.width)}
-  /* width: ${props => props.width}; */
 `
 `
 const Arrow = styled.div`
 const Arrow = styled.div`
   width: 34px;
   width: 34px;