How to use the @build-tracker/formatting.formatSha function in @build-tracker/formatting

To help you get started, we’ve selected a few @build-tracker/formatting 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 paularmstrong / build-tracker / src / app / src / components / ComparisonTable / RevisionDeltaCell.tsx View on Github external
}, []);

  const handleExit = React.useCallback(() => {
    setTooltipVisibility(false);
  }, []);

  return (
    
      {
        // @ts-ignore
        
      }
      {showTooltip ? (
        
      ) : null}
    
  );
};
github paularmstrong / build-tracker / src / app / src / components / BuildInfo.tsx View on Github external
const revisionUrl = build.getMetaUrl('revision');

  const dispatch = useDispatch();

  const handleClose = React.useCallback(() => {
    dispatch(setFocusedRevision(undefined));
  }, [dispatch]);

  const handleRemove = React.useCallback(() => {
    dispatch(removeComparedRevision(focusedRevision));
  }, [dispatch, focusedRevision]);

  return (
github paularmstrong / build-tracker / src / app / src / components / Graph / XAxis.tsx View on Github external
    const axis = axisBottom(scale).tickFormat(d => formatSha(d));
    select(ref.current)
github paularmstrong / build-tracker / src / comparator / src / index.ts View on Github external
const defaultFormatRevision = (cell: RevisionCell): string => formatSha(cell.revision);
const defaultFormatRevisionDelta = (cell: RevisionDeltaCell): string => ${cell.deltaIndex}`;

@build-tracker/formatting

Build Tracker number and string formatting tools

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages