kleros/kleros-v2

View on GitHub
web/src/components/Popup/MiniGuides/Onboarding/HowItWorks.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import React from "react";
import styled from "styled-components";

import HowItWorksSvg from "svgs/mini-guides/onboarding/how-it-works.svg";

import { StyledImage } from "../PageContentsTemplate";

const StyledHowItWorksSvg = styled(HowItWorksSvg)`
  [class$="rect-1"],
  [class$="rect-3"] {
    fill: ${({ theme }) => theme.whiteBackground};
  }

  [class$="path-1"],
  [class$="path-2"] {
    fill: ${({ theme }) => theme.secondaryPurple};
  }

  [class$="rect-2"] {
    stroke: ${({ theme }) => theme.stroke};
  }
`;

const HowItWorks: React.FC = () => <StyledImage as={StyledHowItWorksSvg} />;

export default HowItWorks;