From 99f7e32da04acf0f804c4c09c6ab93ad40462604 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Thu, 27 Jul 2023 17:18:07 -0700 Subject: [PATCH] refactor: rename remaining intl props from interface (#7352) **Related Issue:** N/A ## Summary Cleans up some remaining, internal `intlX` props. --- .../src/components/action-bar/action-bar.tsx | 4 ++-- .../src/components/action-pad/action-pad.tsx | 4 ++-- .../src/components/functional/ExpandToggle.tsx | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/calcite-components/src/components/action-bar/action-bar.tsx b/packages/calcite-components/src/components/action-bar/action-bar.tsx index 6a1e52e7c3c..8e5920af726 100755 --- a/packages/calcite-components/src/components/action-bar/action-bar.tsx +++ b/packages/calcite-components/src/components/action-bar/action-bar.tsx @@ -357,10 +357,10 @@ export class ActionBar const expandToggleNode = !expandDisabled ? ( = ({ expanded, - intlExpand, - intlCollapse, + expandText, + collapseText, toggle, el, position, @@ -75,7 +75,7 @@ export const ExpandToggle: FunctionalComponent = ({ }) => { const rtl = getElementDir(el) === "rtl"; - const expandText = expanded ? intlCollapse : intlExpand; + const text = expanded ? collapseText : expandText; const icons = [ICONS.chevronsLeft, ICONS.chevronsRight]; if (rtl) { @@ -91,7 +91,7 @@ export const ExpandToggle: FunctionalComponent = ({ icon={expanded ? expandIcon : collapseIcon} onClick={toggle} scale={scale} - text={expandText} + text={text} textEnabled={expanded} // eslint-disable-next-line react/jsx-sort-props ref={(referenceElement): HTMLCalciteActionElement =>