react-icons/md#MdSubdirectoryArrowRight JavaScript Examples

The following examples show how to use react-icons/md#MdSubdirectoryArrowRight. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ChildrenSection.js    From inky-doodle with MIT License 6 votes vote down vote up
ChildrenSection = (props) => {
  const {
    currentInkyDoodle,
    currentInkyDoodleChildren,
    handleParentOrChildClick,
  } = props;

  return (
    <StyledFamilyOuterContainer>
      <StyledDescriptionHeader>
        <p>Children</p>
      </StyledDescriptionHeader>
      <StyledChildrenContainer gen={currentInkyDoodle.generation}>
        {currentInkyDoodleChildren.map((child) => (
          <StyledIndividualChildContainer
            key={child.number}
            className="nes-pointer"
            onClick={() => handleParentOrChildClick(child)}
          >
            <p>{child.name}</p>
            <img src={child.image.url} alt={child.name} />
            {child.generation > 1 ? <MdSubdirectoryArrowRight /> : null}
          </StyledIndividualChildContainer>
        ))}
      </StyledChildrenContainer>
    </StyledFamilyOuterContainer>
  );
}
Example #2
Source File: ParentsSection.js    From inky-doodle with MIT License 5 votes vote down vote up
ParentsSection = (props) => {
  const {
    currentInkyDoodle,
    currentInkyDoodleParents,
    handleParentOrChildClick,
  } = props;

  return (
    <StyledFamilyOuterContainer top>
      <StyledDescriptionHeader>
        <p>Parents</p>
      </StyledDescriptionHeader>
      <StyledParentsContainer>
        <StyledIndividualParentContainer
          onClick={() =>
            currentInkyDoodle.generation > 1
              ? handleParentOrChildClick(currentInkyDoodleParents[0])
              : null
          }
          className={currentInkyDoodle.generation > 1 ? "nes-pointer" : null}
          linked={currentInkyDoodle.generation > 1}
        >
          {currentInkyDoodleParents[0] ? (
            <>
              <p>{currentInkyDoodleParents[0].name}</p>
              <img
                src={currentInkyDoodleParents[0].image.url}
                alt={currentInkyDoodleParents[0].name}
              />
              {currentInkyDoodle.generation > 1 ? (
                <MdSubdirectoryArrowRight />
              ) : null}
            </>
          ) : (
            <ClipLoader loading={true} size={40} />
          )}
        </StyledIndividualParentContainer>
        <StyledIndividualParentContainer
          right
          onClick={() =>
            currentInkyDoodle.generation > 1
              ? handleParentOrChildClick(currentInkyDoodleParents[1])
              : null
          }
          className={currentInkyDoodle.generation > 1 ? "nes-pointer" : null}
          linked={currentInkyDoodle.generation > 1}
        >
          {currentInkyDoodleParents[1] ? (
            <>
              <p>{currentInkyDoodleParents[1].name}</p>
              <img
                src={currentInkyDoodleParents[1].image.url}
                alt={currentInkyDoodleParents[1].name}
              />
              {currentInkyDoodle.generation > 1 ? (
                <MdSubdirectoryArrowRight />
              ) : null}
            </>
          ) : (
            <ClipLoader loading={true} size={40} />
          )}
        </StyledIndividualParentContainer>
      </StyledParentsContainer>
    </StyledFamilyOuterContainer>
  );
}