@gem-sdk/core 1.23.0-staging.233 → 1.23.0-staging.236
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.
|
@@ -215,7 +215,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
215
215
|
const getSectionName = ()=>{
|
|
216
216
|
const checkRenamedSection = props.name && props.name === `Section ${props.uid}`;
|
|
217
217
|
if (getSectionNumber() >= SECTION_LIMIT - 5) {
|
|
218
|
-
return checkRenamedSection ? 'Section' :
|
|
218
|
+
return `${checkRenamedSection ? 'Section' : props?.name} ${getIndexSection() + 1}/${SECTION_LIMIT}`;
|
|
219
219
|
}
|
|
220
220
|
return checkRenamedSection ? `Section ${getIndexSection() + 1}` : props?.name;
|
|
221
221
|
};
|
|
@@ -213,7 +213,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
213
213
|
const getSectionName = ()=>{
|
|
214
214
|
const checkRenamedSection = props.name && props.name === `Section ${props.uid}`;
|
|
215
215
|
if (getSectionNumber() >= SECTION_LIMIT - 5) {
|
|
216
|
-
return checkRenamedSection ? 'Section' :
|
|
216
|
+
return `${checkRenamedSection ? 'Section' : props?.name} ${getIndexSection() + 1}/${SECTION_LIMIT}`;
|
|
217
217
|
}
|
|
218
218
|
return checkRenamedSection ? `Section ${getIndexSection() + 1}` : props?.name;
|
|
219
219
|
};
|