How to use the @times-components/utils.getLeadAsset function in @times-components/utils

To help you get started, we’ve selected a few @times-components/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / article-in-depth / src / article-in-depth.js View on Github external
{({ isTablet }) => (
          
            
            
                caption && caption.text && 
              }
              style={[styles.leadAsset, isTablet && styles.leadAssetTablet]}
              width={width}
            />
github newsuk / times-components / packages / article-magazine-standard / src / article-magazine-standard.js View on Github external
{({ isTablet }) => (
          
            
             }
              style={[
                styles.leadAssetContainer,
                isTablet && styles.leadAssetContainerTablet,
                isTablet && styles.tabletContainer
              ]}
              width={Math.min(width, tabletWidth)}
            />
          
        )}
github newsuk / times-components / packages / article-in-depth / src / article-in-depth.web.js View on Github external
textColour
    } = article;

    return (
      
        
         }
          style={styles.leadAsset}
          width={width}
        />
        
          
        
      
    );
  }
github newsuk / times-components / packages / article-magazine-standard / src / article-magazine-standard.web.js View on Github external
} = article;

    return (
      
        
         }
          style={styles.leadAssetContainer}
          width={width}
        />
      
    );
  }
github newsuk / times-components / packages / article-magazine-comment / src / article-magazine-comment.js View on Github external
}
              style={[
                styles.leadAssetContainer,
                isTablet && styles.leadAssetContainerTablet
              ]}
              width={Math.min(width, tabletWidth)}
            />
          
        )}