Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

RemoveButton.styled.js 945B

123456789101112131415161718192021222324252627282930
  1. // import { Box } from "@mui/material";
  2. import styled, { css } from "styled-components";
  3. import { ReactComponent as Remove } from "../../../../../assets/images/svg/trash.svg";
  4. import selectedTheme from "../../../../../themes";
  5. import { IconButton } from "../../../../Buttons/IconButton/IconButton";
  6. export const RemoveButtonContainer = styled(IconButton)`
  7. position: absolute;
  8. top: ${(props) => (props.hasGivenReview ? "79px" : "16px")};
  9. right: 16px;
  10. background-color: ${props => props.isRemoved ? "transparent" : selectedTheme.colors.primaryIconBackgroundColor};
  11. border-radius: 100%;
  12. width: 32px;
  13. height: 32px;
  14. ${props => props.isRemoved && css`
  15. & button:hover {
  16. background-color: transparent;
  17. cursor: auto;
  18. }
  19. `}
  20. & button {
  21. width: 32px;
  22. height: 32px;
  23. }
  24. `;
  25. export const RemoveIcon = styled(Remove)`
  26. & path {
  27. stroke: ${props => props.isRemoved && selectedTheme.colors.blockedColor};
  28. }
  29. `;