contentoh-components-library 21.2.19 → 21.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/components/atoms/InputFormatter/index.js +3 -3
  2. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  3. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  4. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  5. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  6. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  7. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  9. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  10. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  11. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -33
  12. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +14 -14
  13. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  14. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  15. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  16. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  17. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  18. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  19. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +173 -108
  20. package/dist/components/pages/ProviderProductEdition/index.js +54 -41
  21. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +69 -193
  22. package/dist/components/pages/RetailerProductEdition/index.js +98 -45
  23. package/package.json +1 -1
  24. package/src/components/atoms/InputFormatter/index.js +8 -3
  25. package/src/components/atoms/VerticalSideMenuMainPage/index.js +17 -30
  26. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +34 -28
  27. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +183 -117
  28. package/src/components/pages/ProviderProductEdition/index.js +15 -7
  29. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +69 -489
  30. package/src/components/pages/RetailerProductEdition/index.js +64 -24
@@ -615,7 +615,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
615
615
  break;
616
616
 
617
617
  case 12:
618
- arr = ["CA", "RC", "RA"];
618
+ arr = ["AS", "CA", "RC", "RA"];
619
619
  return _context4.abrupt("break", 20);
620
620
 
621
621
  case 14:
@@ -1163,6 +1163,41 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1163
1163
  return adminFacilitatorCanEvaluate || adminAuditorCanEvaluate;
1164
1164
  };
1165
1165
 
1166
+ var approveRejectAllButtons = function approveRejectAllButtons() {
1167
+ var concepts = [];
1168
+
1169
+ switch (user.id_role) {
1170
+ case 4:
1171
+ concepts = ["description", "datasheet"];
1172
+ break;
1173
+
1174
+ case 5:
1175
+ concepts = ["images"];
1176
+ break;
1177
+
1178
+ default:
1179
+ concepts = ["description", "datasheet", "images"];
1180
+ break;
1181
+ }
1182
+
1183
+ var services = servicesData.filter(function (_ref10) {
1184
+ var service = _ref10.service;
1185
+ return concepts.includes(service);
1186
+ });
1187
+ var adminFacilitatorCanEvaluate = services.every(function (srv) {
1188
+ var _srv$status;
1189
+
1190
+ return (srv === null || srv === void 0 ? void 0 : (_srv$status = srv.status) === null || _srv$status === void 0 ? void 0 : _srv$status.replace(/.*\//, "")) === "IE";
1191
+ }) && [1, 4, 5].includes(user.id_role); //sessionStorage product
1192
+
1193
+ var adminAuditorCanEvaluate = servicesData.every(function (srv) {
1194
+ var _srv$status2;
1195
+
1196
+ return ["AC", "RP", "RCA"].includes(srv === null || srv === void 0 ? void 0 : (_srv$status2 = srv.status) === null || _srv$status2 === void 0 ? void 0 : _srv$status2.replace(/.*\//, ""));
1197
+ }) && [1, 6].includes(user.id_role);
1198
+ return adminFacilitatorCanEvaluate || adminAuditorCanEvaluate;
1199
+ };
1200
+
1166
1201
  var getSectionIcon = function getSectionIcon() {
1167
1202
  switch (activeTab) {
1168
1203
  case "Ficha técnica":
@@ -1173,7 +1208,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1173
1208
  setIcon(_descriptionSent.default);
1174
1209
  break;
1175
1210
 
1176
- case "Imágenes0,,":
1211
+ case "Imágenes":
1177
1212
  setIcon(_uploadingImages.default);
1178
1213
  break;
1179
1214
 
@@ -1183,7 +1218,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1183
1218
  };
1184
1219
 
1185
1220
  var sendToFacilitator = /*#__PURE__*/function () {
1186
- var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
1221
+ var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) {
1187
1222
  var concept, productTemp, evalStatus, _articleId, orderId, data, res, _message, specialistDone, _JSON$parse5, newStatus, newOrderStatus, newArticleStatus;
1188
1223
 
1189
1224
  return _regenerator.default.wrap(function _callee9$(_context9) {
@@ -1283,7 +1318,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1283
1318
  }));
1284
1319
 
1285
1320
  return function sendToFacilitator(_x) {
1286
- return _ref10.apply(this, arguments);
1321
+ return _ref11.apply(this, arguments);
1287
1322
  };
1288
1323
  }();
1289
1324
 
@@ -1314,7 +1349,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1314
1349
  };
1315
1350
 
1316
1351
  var createComment = /*#__PURE__*/function () {
1317
- var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, body, tab) {
1352
+ var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, body, tab) {
1318
1353
  var _product$article12;
1319
1354
 
1320
1355
  var concept, data;
@@ -1371,7 +1406,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1371
1406
  }));
1372
1407
 
1373
1408
  return function createComment(_x2, _x3, _x4) {
1374
- return _ref11.apply(this, arguments);
1409
+ return _ref12.apply(this, arguments);
1375
1410
  };
1376
1411
  }();
1377
1412
 
@@ -1449,7 +1484,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1449
1484
  }, [activeTab]);
1450
1485
 
1451
1486
  var commentRevised = /*#__PURE__*/function () {
1452
- var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
1487
+ var _ref13 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
1453
1488
  var data;
1454
1489
  return _regenerator.default.wrap(function _callee11$(_context11) {
1455
1490
  while (1) {
@@ -1479,12 +1514,12 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1479
1514
  }));
1480
1515
 
1481
1516
  return function commentRevised() {
1482
- return _ref12.apply(this, arguments);
1517
+ return _ref13.apply(this, arguments);
1483
1518
  };
1484
1519
  }();
1485
1520
 
1486
1521
  var setAssignation = /*#__PURE__*/function () {
1487
- var _ref13 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(assignationType, assignationId) {
1522
+ var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12(assignationType, assignationId) {
1488
1523
  var _product$article13;
1489
1524
 
1490
1525
  var concept, productTemp, data;
@@ -1543,7 +1578,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1543
1578
  }));
1544
1579
 
1545
1580
  return function setAssignation(_x5, _x6) {
1546
- return _ref13.apply(this, arguments);
1581
+ return _ref14.apply(this, arguments);
1547
1582
  };
1548
1583
  }();
1549
1584
 
@@ -1655,8 +1690,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1655
1690
  }, [loading]);
1656
1691
 
1657
1692
  var validateAll = /*#__PURE__*/function () {
1658
- var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
1659
- var evaluationArray, sendAll, conceptArray, productTemp;
1693
+ var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
1694
+ var _conceptArray, evaluationArray, sendAll, conceptArray, productTemp;
1695
+
1660
1696
  return _regenerator.default.wrap(function _callee13$(_context13) {
1661
1697
  while (1) {
1662
1698
  switch (_context13.prev = _context13.next) {
@@ -1665,29 +1701,48 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1665
1701
  setLoading(true);
1666
1702
  evaluationArray = [];
1667
1703
  sendAll = [];
1704
+ conceptArray = [];
1705
+ _context13.t0 = user.id_role;
1706
+ _context13.next = _context13.t0 === 4 ? 8 : _context13.t0 === 5 ? 10 : 12;
1707
+ break;
1708
+
1709
+ case 8:
1710
+ conceptArray = ["description", "datasheet"];
1711
+ return _context13.abrupt("break", 14);
1712
+
1713
+ case 10:
1714
+ conceptArray = ["images"];
1715
+ return _context13.abrupt("break", 14);
1716
+
1717
+ case 12:
1668
1718
  conceptArray = ["description", "datasheet", "images"];
1669
- servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
1670
- var _product$id_order;
1719
+ return _context13.abrupt("break", 14);
1671
1720
 
1672
- var data = {
1673
- articleId: product.article.id_article,
1674
- orderId: (_product$id_order = product.id_order) !== null && _product$id_order !== void 0 ? _product$id_order : product.orderId,
1675
- concept: ret.service,
1676
- result: result,
1677
- evalStatus: product["".concat(ret.service, "_status")],
1678
- retailerId: ret.id_retailer
1679
- };
1680
- evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
1681
- headers: {
1682
- Authorization: token
1683
- }
1684
- }));
1721
+ case 14:
1722
+ servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
1723
+ if (conceptArray.includes(ret.service)) {
1724
+ var _product$id_order;
1725
+
1726
+ var data = {
1727
+ articleId: product.article.id_article,
1728
+ orderId: (_product$id_order = product.id_order) !== null && _product$id_order !== void 0 ? _product$id_order : product.orderId,
1729
+ concept: ret.service,
1730
+ result: result,
1731
+ evalStatus: product["".concat(ret.service, "_status")],
1732
+ retailerId: ret.id_retailer
1733
+ };
1734
+ evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
1735
+ headers: {
1736
+ Authorization: token
1737
+ }
1738
+ }));
1739
+ }
1685
1740
  });
1686
- _context13.next = 8;
1741
+ _context13.next = 17;
1687
1742
  return Promise.all(evaluationArray);
1688
1743
 
1689
- case 8:
1690
- conceptArray === null || conceptArray === void 0 ? void 0 : conceptArray.forEach(function (concept) {
1744
+ case 17:
1745
+ (_conceptArray = conceptArray) === null || _conceptArray === void 0 ? void 0 : _conceptArray.forEach(function (concept) {
1691
1746
  var _product$id_order2;
1692
1747
 
1693
1748
  var data = {
@@ -1702,10 +1757,10 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1702
1757
  }
1703
1758
  }));
1704
1759
  });
1705
- _context13.next = 11;
1760
+ _context13.next = 20;
1706
1761
  return Promise.all(sendAll);
1707
1762
 
1708
- case 11:
1763
+ case 20:
1709
1764
  productTemp = product;
1710
1765
  productTemp.status = "".concat(result, "A");
1711
1766
  productTemp.datasheet_status = productTemp.datasheet_status === "NA" ? "NA" : "".concat(result, "A");
@@ -1713,28 +1768,28 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1713
1768
  productTemp.images_status = productTemp.images_status === "NA" ? "NA" : "".concat(result, "A");
1714
1769
  sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
1715
1770
  setProduct(productTemp);
1716
- _context13.next = 20;
1771
+ _context13.next = 29;
1717
1772
  return loadData();
1718
1773
 
1719
- case 20:
1720
- _context13.next = 25;
1774
+ case 29:
1775
+ _context13.next = 34;
1721
1776
  break;
1722
1777
 
1723
- case 22:
1724
- _context13.prev = 22;
1725
- _context13.t0 = _context13["catch"](0);
1726
- console.log(_context13.t0);
1778
+ case 31:
1779
+ _context13.prev = 31;
1780
+ _context13.t1 = _context13["catch"](0);
1781
+ console.log(_context13.t1);
1727
1782
 
1728
- case 25:
1783
+ case 34:
1729
1784
  case "end":
1730
1785
  return _context13.stop();
1731
1786
  }
1732
1787
  }
1733
- }, _callee13, null, [[0, 22]]);
1788
+ }, _callee13, null, [[0, 31]]);
1734
1789
  }));
1735
1790
 
1736
1791
  return function validateAll(_x7) {
1737
- return _ref14.apply(this, arguments);
1792
+ return _ref15.apply(this, arguments);
1738
1793
  };
1739
1794
  }();
1740
1795
 
@@ -1805,9 +1860,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1805
1860
  }
1806
1861
  })]);
1807
1862
  },
1808
- showApproveRejectAll: isAuditor && servicesData.every(function (serv) {
1809
- return ["RA", "AA", "AP", "ACA", "AC"].includes(serv.status);
1810
- }) && approveRejectButtons() && (auditorAssigned() || userAssigned()),
1863
+ showApproveRejectAll: approveRejectAllButtons() && (auditorAssigned() || userAssigned()),
1811
1864
  showValidationButtons: approveRejectButtons() && (auditorAssigned() || userAssigned()),
1812
1865
  approveAll: function approveAll() {
1813
1866
  return validateAll("A");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.19",
3
+ "version": "21.2.22",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -22,7 +22,10 @@ export const InputFormatter = ({
22
22
  const maxLength = maxChar ? maxChar : 999;
23
23
 
24
24
  const getValue = (value) => {
25
- let temp = value.replace(/\n/gm, "<br>").replace(/\&(nbsp;|amp;)/gm, " ");
25
+ let temp = value
26
+ .replace(/\n/gm, "<br>")
27
+ .replace(/\&nbsp;/gm, " ")
28
+ .replace(/\&amp;/gm, "&");
26
29
  return temp;
27
30
  };
28
31
 
@@ -37,7 +40,8 @@ export const InputFormatter = ({
37
40
  return value
38
41
  .replace(/<\/p><p>/gm, "\n")
39
42
  .replace(/<\/?br>|<\/?p>/gm, "")
40
- .replace(/\&(nbsp;|amp;)/gm, " ");
43
+ .replace(/\&nbsp;/gm, " ")
44
+ .replace(/\&amp;/gm, "&");
41
45
  };
42
46
 
43
47
  const onChange = (valueInput, delta, user, h) => {
@@ -49,7 +53,8 @@ export const InputFormatter = ({
49
53
  .replace(/<\/li>/gm, "\n")
50
54
  .replace(/<\/p><p>/gm, "\n")
51
55
  .replaceAll(/<\/?(?!\/?strong).*?>/gm, "")
52
- .replace(/\&(nbsp;|amp;)/gm, " ");
56
+ .replace(/\&nbsp;/gm, " ")
57
+ .replace(/\&amp;/gm, "&");
53
58
  setInputValue(valueInput);
54
59
  value = unformattedText;
55
60
  } else {
@@ -1,15 +1,18 @@
1
1
  import { Container } from "./styles";
2
2
  import iconLogoContentoh from "../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg";
3
3
  import iconLogo from "../../../assets/images/verticalSideMenuMainPage/iconLogo.svg";
4
- import openMenu from "../../../assets/images/verticalSideMenuMainPage/openMenu.svg";
5
- import closeMenu from "../../../assets/images/verticalSideMenuMainPage/closeMenu.svg";
6
4
  import React, { useState } from "react";
5
+ import { NavLink } from "react-router-dom";
7
6
 
8
7
  export const VerticalSideMenuMainPage = ({ menuoption }) => {
9
- const [trueBar, setTrueBar] = useState("");
10
- let sub;
8
+ const [trueBar, setTrueBar] = useState();
11
9
  return (
12
- <Container className={trueBar} bar={trueBar}>
10
+ <Container
11
+ className={trueBar}
12
+ bar={trueBar}
13
+ onMouseOver={() => setTrueBar(true)}
14
+ onMouseOut={() => setTrueBar(false)}
15
+ >
13
16
  <div className="navbar-top">
14
17
  <img
15
18
  src={trueBar ? iconLogoContentoh : iconLogo}
@@ -17,45 +20,29 @@ export const VerticalSideMenuMainPage = ({ menuoption }) => {
17
20
  className="logo"
18
21
  ></img>
19
22
  <div className="option">
20
- {menuoption.map((item) => (
21
- <>
22
- <div
23
- className="option-link"
24
- exact
25
- activeClassName="active"
26
- to={item.path}
27
- >
28
- <img src={item.icon} alt={item.title} width={"25px"}></img>
23
+ {menuoption.map((item, index) => (
24
+ <div key={index}>
25
+ <NavLink to={item.path} className="option-link">
26
+ <img src={item.icon} alt={item.title}></img>
29
27
  {trueBar && <p>{item.title}</p>}
30
- </div>
28
+ </NavLink>
31
29
  {item.suboption === undefined ? (
32
30
  ""
33
31
  ) : (
34
32
  <>
35
- {menuoption[1].suboption.map((subitem) => (
33
+ {item?.suboption?.map((subitem) => (
36
34
  <div className="sub-option">
37
- <div exact activeClassName="active" to={subitem.path}>
35
+ <NavLink to={subitem.path} className="sub-option-link">
38
36
  {trueBar && <p>{subitem.title}</p>}
39
- </div>
37
+ </NavLink>
40
38
  </div>
41
39
  ))}
42
40
  </>
43
41
  )}
44
- </>
42
+ </div>
45
43
  ))}
46
44
  </div>
47
45
  </div>
48
- <div className="menu-bottom">
49
- <img
50
- src={trueBar ? closeMenu : openMenu}
51
- alt="Open Menu"
52
- onClick={() => {
53
- {
54
- trueBar ? setTrueBar("") : setTrueBar("actived");
55
- }
56
- }}
57
- ></img>
58
- </div>
59
46
  </Container>
60
47
  );
61
48
  };
@@ -1,43 +1,44 @@
1
1
  import styled from "styled-components";
2
- import { NavLink } from "react-router-dom";
3
- //styled(NavLink)
2
+
4
3
  export const Container = styled.div`
5
- height: 100%;
6
- width: 58px;
4
+ height: 98%;
7
5
  box-sizing: border-box;
8
6
  padding: 23px 10px 70px 10px;
9
7
  flex-direction: column;
10
8
  justify-content: space-between;
11
9
  overflow: auto;
12
- border-radius: 50px;
10
+ width: ${({ bar }) => (bar ? 270 : 58)}px;
11
+ border-radius: ${({ bar }) => (bar ? 20 : 50)}px;
13
12
  background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
14
13
  scrollbar-width: none;
15
14
  display: flex;
16
15
  text-align: center;
17
- &.actived {
18
- width: 200px;
19
- padding: 23px 10px 15px 10px;
20
- border-radius: 20px;
16
+ transition: width 0.3s linear;
17
+ margin: 10px 0 10px 20px;
18
+ & + * {
19
+ margin-left: 30px;
21
20
  }
22
21
  .navbar-top {
23
- .logo {
24
- & + * {
25
- margin-top: ${({ bar }) => (bar === "" ? 145 : 50)}%;
26
- }
27
- }
22
+ transition: all 0.3s linear;
28
23
  .option {
29
24
  display: flex;
30
25
  flex-direction: column;
31
26
  align-items: flex-start;
27
+ margin-top: ${({ bar }) => (bar === "" ? 145 : 50)}%;
32
28
  padding-left: ${({ bar }) => (bar ? 5 : 0)}px;
33
- div {
29
+ .active {
30
+ background: #e33aa9;
31
+ }
32
+ & + div {
33
+ margin-top: 5px;
34
+ }
35
+ a {
34
36
  height: ${({ bar }) => (bar ? 32 : 38)}px;
35
- width: ${({ bar }) => (bar ? 165 : 38)}px;
36
37
  display: flex;
37
38
  justify-content: ${({ bar }) => (bar ? "flex-start" : "center")};
38
39
  border-radius: ${({ bar }) => (bar ? 18 : 100)}px;
39
40
  align-items: center;
40
- font-family: "Raleway";
41
+ font-family: sans-serif;
41
42
  font-style: normal;
42
43
  font-weight: 400;
43
44
  font-size: 18px;
@@ -47,13 +48,17 @@ export const Container = styled.div`
47
48
  text-decoration: none;
48
49
  &.option-link {
49
50
  cursor: pointer;
50
- margin-top: 12px;
51
+ width: ${({ bar }) => (bar ? "160" : "38")}px;
52
+ margin: 5px 0;
51
53
  padding-left: ${({ bar }) => (bar ? 15 : 0)}px;
52
54
  }
53
55
  p {
54
56
  cursor: pointer;
57
+ margin: 0%;
58
+ pointer-events: none;
55
59
  }
56
60
  img {
61
+ width: 22px;
57
62
  & + * {
58
63
  margin-left: 12px;
59
64
  }
@@ -68,7 +73,7 @@ export const Container = styled.div`
68
73
  padding-left: ${({ bar }) => (bar ? 28 : 20)}px;
69
74
  height: auto;
70
75
  width: auto;
71
- div {
76
+ a {
72
77
  display: flex;
73
78
  justify-content: flex-start;
74
79
  text-decoration: none;
@@ -77,7 +82,7 @@ export const Container = styled.div`
77
82
  border-left: 1px solid #f0eef2;
78
83
  border-radius: 0;
79
84
  color: #f0eef2;
80
- padding-top: 20px;
85
+ padding-top: 14px;
81
86
  padding-left: 12px;
82
87
  height: 25px;
83
88
  &::before {
@@ -88,16 +93,17 @@ export const Container = styled.div`
88
93
  height: 10px;
89
94
  background-color: white;
90
95
  position: absolute;
91
- left: ${({ bar }) => (bar ? -4 : -16)}%;
92
- bottom: 1%;
96
+ bottom: 0;
97
+ left: ${({ bar }) => (bar ? -4 : -34)}%;
98
+ }
99
+ &.active {
100
+ background: none;
101
+ &::before {
102
+ background-color: #e33aa9;
103
+ }
93
104
  }
94
105
  }
95
106
  }
96
107
  }
97
108
  }
98
- .menu-bottom {
99
- display: flex;
100
- justify-content: ${({ bar }) => (bar ? "flex-end" : "center")};
101
- cursor: pointer;
102
- }
103
- `;
109
+ `;