Back To Top

Error rendering component

Unknown plugin "module-resolver" specified in "base" at 0, attempted to resolve relative to "/home/circleci/wellcomecollection.org/common/views/components/BackToTop"

// @flow
import Icon from '../Icon/Icon';

type Props = {|
  trackId: string
|}

const BackToTop = ({trackId}: Props) => (
  <a href='#top' className='back-to-top icon-rounder bg-transparent-black border-color-silver js-back-to-top flex flex--v-center flex--h-center'
    data-track-event={`{"category": "component", "action": "back-to-top:click", "label": "url: ${trackId}"}`}>
    <span className="back-to-top__text">back to top</span>
    <Icon name="chevron" extraClasses='icon--180 icon--white' />
  </a>
);

export default BackToTop;
/* No context defined for this component. */

There are no notes for this item.