@treely/strapi-slices 7.15.1 → 7.15.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.
- package/dist/strapi-slices.cjs.development.js +6 -4
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +6 -4
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/portfolio/ProjectInfo/ProjectInfo.tsx +39 -33
|
@@ -5597,7 +5597,7 @@ var ProjectInfo = function ProjectInfo(_ref) {
|
|
|
5597
5597
|
columns: [1, null, null, 2],
|
|
5598
5598
|
spacingX: "10",
|
|
5599
5599
|
spacingY: "8"
|
|
5600
|
-
}, project.averageSellableAmountPerYear
|
|
5600
|
+
}, project.averageSellableAmountPerYear > 0 ? React.createElement(Tooltip, {
|
|
5601
5601
|
label: formatMessage({
|
|
5602
5602
|
id: 'features.projectInfo.properties.projectVolume.toolTip'
|
|
5603
5603
|
})
|
|
@@ -5613,17 +5613,19 @@ var ProjectInfo = function ProjectInfo(_ref) {
|
|
|
5613
5613
|
})
|
|
5614
5614
|
}),
|
|
5615
5615
|
caption: subtitles.averageSellableAmountPerYearSubtitle
|
|
5616
|
-
})))
|
|
5616
|
+
}))) : React.createElement(Box, null, React.createElement(CreditsAvailableBadge, {
|
|
5617
|
+
status: project.creditAvailability
|
|
5618
|
+
})), project.riskBuffer && React.createElement(Box, null, React.createElement(LabelTextPair, {
|
|
5617
5619
|
label: formatMessage({
|
|
5618
5620
|
id: 'features.projectInfo.properties.riskBuffer'
|
|
5619
5621
|
}),
|
|
5620
5622
|
text: formatNumber(project.riskBuffer / 100, FORMAT_AS_PERCENT_CONFIG),
|
|
5621
5623
|
caption: subtitles.riskBufferSubtitle
|
|
5622
|
-
}))), React.createElement(Box, {
|
|
5624
|
+
}))), project.averageSellableAmountPerYear > 0 ? React.createElement(Box, {
|
|
5623
5625
|
mt: "2"
|
|
5624
5626
|
}, React.createElement(CreditsAvailableBadge, {
|
|
5625
5627
|
status: project.creditAvailability
|
|
5626
|
-
})));
|
|
5628
|
+
})) : React.createElement(React.Fragment, null));
|
|
5627
5629
|
};
|
|
5628
5630
|
|
|
5629
5631
|
var DocumentsDownloadList = function DocumentsDownloadList(_ref) {
|