@7shifts/sous-chef 3.39.1 → 3.40.1
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/index.js
CHANGED
|
@@ -8771,9 +8771,10 @@ var DataTableEmptyState = function DataTableEmptyState(_ref) {
|
|
|
8771
8771
|
}, React__default.createElement("div", {
|
|
8772
8772
|
className: styles$M['data-table-empty-state']
|
|
8773
8773
|
}, React__default.createElement(EmptyStateContainerStack, {
|
|
8774
|
-
mediaUrl:
|
|
8774
|
+
mediaUrl: customEmptyState && customEmptyState.image ? customEmptyState.image : '',
|
|
8775
8775
|
mediaComponent: React__default.createElement(EmptyStateIllustration, null),
|
|
8776
8776
|
title: customEmptyState ? customEmptyState.title : translate('emptyStateTitle'),
|
|
8777
|
+
actions: customEmptyState && customEmptyState.actions,
|
|
8777
8778
|
size: "small"
|
|
8778
8779
|
}, customEmptyState ? customEmptyState.caption : translate('emptyStateCaption')))));
|
|
8779
8780
|
};
|
|
@@ -8861,7 +8862,7 @@ var DataTable$1 = function DataTable(_ref) {
|
|
|
8861
8862
|
return React__default.createElement(Context.Provider, {
|
|
8862
8863
|
value: {
|
|
8863
8864
|
columns: columns,
|
|
8864
|
-
showActionMenu: showActionMenu,
|
|
8865
|
+
showActionMenu: state === DATA_TABLE_STATES.EMPTY ? false : showActionMenu,
|
|
8865
8866
|
numberOfRows: numberOfRows,
|
|
8866
8867
|
hasVerticalBorders: hasVerticalBorders,
|
|
8867
8868
|
state: state
|