فهرست منبع

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 سال پیش
والد
کامیت
8da5e425f6
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 1
      src/components/atoms/CopyMultilineValue/index.jsx
  2. 0 1
      src/components/organisms/MainDetails/index.jsx

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

@@ -54,7 +54,7 @@ class CopyMultineValue extends React.Component<Props> {
     return (
       <Wrapper
         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}
         <CopyButton />

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

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