From 4d437a889811488470d622c1ef857982ec85dfc6 Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Tue, 4 Mar 2025 13:36:42 +0530 Subject: [PATCH] FIX-1847 added all the changes and removed the truncate algo. --- src/Components/Inputs/Select/index.jsx | 8 ---- .../Components/OptionsHeader/index.jsx | 24 +----------- src/Utils/Input/utils.jsx | 38 ------------------- src/Utils/Theme/globalTheme.js | 12 ++++++ src/Utils/stringUtils.js | 11 +----- 5 files changed, 15 insertions(+), 78 deletions(-) delete mode 100644 src/Utils/Input/utils.jsx diff --git a/src/Components/Inputs/Select/index.jsx b/src/Components/Inputs/Select/index.jsx index 49749f2ca..189ff360c 100644 --- a/src/Components/Inputs/Select/index.jsx +++ b/src/Components/Inputs/Select/index.jsx @@ -2,7 +2,6 @@ import PropTypes from "prop-types"; import { useTheme } from "@emotion/react"; import { MenuItem, Select as MuiSelect, Stack, Typography } from "@mui/material"; import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; -import { renderTruncatedValue } from "../../../Utils/Input/utils"; import "./index.css"; /** @@ -50,8 +49,6 @@ const Select = ({ sx, name = "", labelControlSpacing = 2, - truncate = false, - maxTruncateLength = 15, }) => { const theme = useTheme(); @@ -65,10 +62,6 @@ const Select = ({ margin: theme.spacing(2), }; - const renderShortValue = () => { - return renderTruncatedValue(displayName, truncate, maxTruncateLength, placeholder); - }; - return ( {placeholder && ( Filter by: - +