Icons

Error rendering component

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

// @flow

import Icon from '../../components/Icon/Icon';

type Props = {
  allIcons: Array<{|
    name: string,
    title?: string,
    extraClasses: Array<?string>,
    attrs: Array<?string>
  |}>
}

const AllIcons = ({allIcons}: Props) => (
  <div>
    {allIcons.map(icon => (
      <div key={icon.name} className='styleguide__icon'>
        <p className='styleguide__icon__id'>{icon.name}</p>
        <Icon name={icon.name} />
      </div>
    ))}
  </div>
);

export default AllIcons;
{
  "allIcons": [
    {
      "name": "arrow",
      "icons": {}
    },
    {
      "name": "arrowSmall",
      "icons": {}
    },
    {
      "name": "audioDescribed",
      "icons": {}
    },
    {
      "name": "speechToText",
      "icons": {}
    },
    {
      "name": "britishSignLanguage",
      "icons": {}
    },
    {
      "name": "cc",
      "icons": {}
    },
    {
      "name": "ccBy",
      "icons": {}
    },
    {
      "name": "ccNc",
      "icons": {}
    },
    {
      "name": "ccNd",
      "icons": {}
    },
    {
      "name": "ccPdm",
      "icons": {}
    },
    {
      "name": "ccZero",
      "icons": {}
    },
    {
      "name": "check",
      "icons": {}
    },
    {
      "name": "chevron",
      "icons": {}
    },
    {
      "name": "clock",
      "icons": {}
    },
    {
      "name": "cross",
      "icons": {}
    },
    {
      "name": "email",
      "icons": {}
    },
    {
      "name": "image",
      "icons": {}
    },
    {
      "name": "location",
      "icons": {}
    },
    {
      "name": "plus",
      "icons": {}
    },
    {
      "name": "search",
      "icons": {}
    },
    {
      "name": "ticket",
      "icons": {}
    },
    {
      "name": "ticketAvailable",
      "icons": {}
    },
    {
      "name": "zoomIn",
      "icons": {}
    },
    {
      "name": "zoomOut",
      "icons": {}
    },
    {
      "name": "information",
      "icons": {}
    },
    {
      "name": "underConstruction",
      "icons": {}
    },
    {
      "name": "clear",
      "icons": {}
    },
    {
      "name": "download",
      "icons": {}
    },
    {
      "name": "hearingLoop",
      "icons": {}
    },
    {
      "name": "volume",
      "icons": {}
    },
    {
      "name": "play",
      "icons": {}
    },
    {
      "name": "gallery",
      "icons": {}
    },
    {
      "name": "twitter",
      "icons": {}
    },
    {
      "name": "facebook",
      "icons": {}
    },
    {
      "name": "instagram",
      "icons": {}
    },
    {
      "name": "soundcloud",
      "icons": {}
    },
    {
      "name": "tumblr",
      "icons": {}
    },
    {
      "name": "youtube",
      "icons": {}
    },
    {
      "name": "tripadvisor",
      "icons": {}
    },
    {
      "name": "wellcome",
      "icons": {}
    },
    {
      "name": "statusIndicator",
      "icons": {}
    }
  ]
}

There are no notes for this item.