@banch0u/core-project-test-repository 2.1.1 → 2.1.2

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.
@@ -3,7 +3,7 @@ import React, { useMemo, useRef, useEffect, useState } from "react";
3
3
  import { useSelector } from "react-redux";
4
4
  import { useLocation } from "react-router-dom";
5
5
  import { Collapse } from "antd";
6
- import { RightOutlined } from "@ant-design/icons";
6
+ import { RightOutlined, SettingOutlined } from "@ant-design/icons";
7
7
  import style from "./index.module.scss";
8
8
  import { entryData } from "../../../pages/Platform/constant";
9
9
  import Portal from "../../Portal";
@@ -35,7 +35,7 @@ var AppSelect = function AppSelect() {
35
35
  var active = useMemo(function () {
36
36
  return filteredOptions.find(function (opt) {
37
37
  return opt.pathname.includes("/".concat(baseSegment));
38
- }) || filteredOptions[0];
38
+ }) || null;
39
39
  }, [filteredOptions, baseSegment]);
40
40
  useEffect(function () {
41
41
  var handleClickOutside = function handleClickOutside(e) {
@@ -87,7 +87,7 @@ var AppSelect = function AppSelect() {
87
87
  }, /*#__PURE__*/React.createElement(Panel, {
88
88
  header: /*#__PURE__*/React.createElement("div", {
89
89
  className: style.accordionHeader
90
- }, /*#__PURE__*/React.createElement("div", null, active === null || active === void 0 ? void 0 : active.icon), /*#__PURE__*/React.createElement("span", null, active === null || active === void 0 ? void 0 : active.value)),
90
+ }, baseSegment === "settings" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SettingOutlined, null)), /*#__PURE__*/React.createElement("span", null, "T\u0259nziml\u0259m\u0259l\u0259r")) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, active === null || active === void 0 ? void 0 : active.icon), /*#__PURE__*/React.createElement("span", null, active === null || active === void 0 ? void 0 : active.value))),
91
91
  key: "1"
92
92
  })), activeKey.length > 0 && /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement("div", {
93
93
  "data-no-invert": true,
@@ -100,7 +100,7 @@ var AppSelect = function AppSelect() {
100
100
  return /*#__PURE__*/React.createElement("a", {
101
101
  key: option.id,
102
102
  href: option.pathname,
103
- className: style.accordionOption
103
+ className: "".concat(style.accordionOption, " ").concat(baseSegment === option.pathname.split("/")[1] ? style.selected : "")
104
104
  }, option.icon, /*#__PURE__*/React.createElement("span", null, option.value));
105
105
  }))));
106
106
  };
@@ -330,7 +330,8 @@ var QuestionnairesSidebar = function QuestionnairesSidebar(_ref) {
330
330
  className: "questionnaires_menu",
331
331
  style: {
332
332
  overflowY: "auto",
333
- maxHeight: "calc(100vh - 225px)"
333
+ maxHeight: "calc(100vh - 217px)",
334
+ borderBottomLeftRadius: 18
334
335
  }
335
336
  }, /*#__PURE__*/React.createElement(Menu, {
336
337
  defaultSelectedKeys: [selectedKey],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [