dhre-ui-kit 0.0.271 → 0.0.272
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.
- package/lib/index.d.ts +0 -1
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +2 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3027,8 +3027,7 @@ const ScrollableList = ({
|
|
|
3027
3027
|
selectedItemTextColor = "CONTENT_PRIMARY",
|
|
3028
3028
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
3029
3029
|
activeTab,
|
|
3030
|
-
errorStyle
|
|
3031
|
-
textColor
|
|
3030
|
+
errorStyle
|
|
3032
3031
|
}) => {
|
|
3033
3032
|
const [selectedItem, setSelectedItem] = useState(
|
|
3034
3033
|
data && data.length > 0 ? data[0].name : null
|
|
@@ -3067,7 +3066,7 @@ const ScrollableList = ({
|
|
|
3067
3066
|
{
|
|
3068
3067
|
text: item.name,
|
|
3069
3068
|
variant: "L1_REGULAR",
|
|
3070
|
-
textColor: (activeTab ?? selectedItem) === item.name ?
|
|
3069
|
+
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
|
|
3071
3070
|
}
|
|
3072
3071
|
),
|
|
3073
3072
|
item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
|