How to use the @crave/farmblocks-text.fontSizes.MEDIUM 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
props.customCell(row, {
          rowIndex,
          selected: cellProps.selected,
          grouped,
          addProps: addedProps => {
            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);
github CraveFood / farmblocks / packages / form-wrapper / src / FormWrapper.js View on Github external
const FormWrapper = props => {
  const { title, extraContent, id } = props;
  return (
    <div id="{id}">
      <header>
        
        
          {props.cancelLabel}
        
      </header>

      {props.children}

      <footer>
        </footer></div>
github CraveFood / farmblocks / packages / table / src / Table.story.js View on Github external
const InfoCell = props =&gt; (
  <div style="{{">
    <img src="{props.imageSrc}">
    <div style="{{">
      <div style="{{">
        
      </div>
      } href={props.linkSrc}&gt;
        {props.linkText}
      
    </div>
  </div>
);
InfoCell.propTypes = {