How to use the @crave/farmblocks-text.fontTypes.NORMAL function in @crave/farmblocks-text

To help you get started, we’ve selected a few @crave/farmblocks-text 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 CraveFood / farmblocks / packages / table / src / Table.js View on Github external
renderColumnTitle = (columnIndex, columnProps = {}) => {
    const { width, align, whiteSpace } = columnProps;
    const cellProps = { width, align, whiteSpace, className: "cell" };
    const headerCell = content => (
      {content}
    );

    if (columnProps.customTitle) {
      return headerCell(columnProps.customTitle(this.props.data, this.state));
    }

    if (columnProps.clickable) {
      return headerCell(
        <div>
          
            {columnProps.title}
          
          
        </div>,
      );
    }

    if (columnProps.title) {
      return headerCell(
github CraveFood / farmblocks / packages / empty-state / src / EmptyState.js View on Github external
imageSrc,
  icon,
  title,
  description,
  actions,
  info,
}) =&gt; (
  
    

    

    {description &amp;&amp; (
      
    )}
github CraveFood / farmblocks / packages / table / src / Table.js View on Github external
grouped,
          addProps: addedProps =&gt; {
            mutable.injectedProps = addedProps;
          },
        }),
      );
    }

    if (props.text) {
      const text = props.text(row);
      const textProps = {
        align: props.align,
        size: fontSizes.MEDIUM,
      };

      const type = props.fontType ? props.fontType : fontTypes.NORMAL;

      return bodyCell(
        ,
      );
    }
    return bodyCell(null);
  };