@appcorp/app-corp-vista 0.3.20 → 0.3.21
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.
|
@@ -9,15 +9,15 @@ var react_1 = __importDefault(require("react"));
|
|
|
9
9
|
var vista_dashboard_header_v1_1 = require("../vista-dashboard-header-v1/vista-dashboard-header-v1");
|
|
10
10
|
var vista_dashboard_setting_section_v1_1 = require("../../molecules/vista-dashboard-setting-section-v1/vista-dashboard-setting-section-v1");
|
|
11
11
|
var VistaDashboardSettingV1 = function (_a) {
|
|
12
|
-
var activeTab = _a.activeTab, activeTabComponentMap = _a.activeTabComponentMap, headerTabs = _a.headerTabs, heading = _a.heading;
|
|
12
|
+
var activeTab = _a.activeTab, activeTabComponentMap = _a.activeTabComponentMap, headerTabs = _a.headerTabs, heading = _a.heading, isDeleteSectionVisible = _a.isDeleteSectionVisible;
|
|
13
13
|
return (react_1.default.createElement("div", null,
|
|
14
14
|
react_1.default.createElement(vista_dashboard_header_v1_1.VistaDashboardHeaderV1, { heading: heading, items: headerTabs }),
|
|
15
15
|
activeTabComponentMap[activeTab].map(function (_a) {
|
|
16
16
|
var title = _a.title, description = _a.description, component = _a.component;
|
|
17
17
|
return (react_1.default.createElement(vista_dashboard_setting_section_v1_1.VistaDashboardSettingSectionV1, { key: title, title: title, description: description }, component));
|
|
18
18
|
}),
|
|
19
|
-
react_1.default.createElement(vista_dashboard_setting_section_v1_1.VistaDashboardSettingSectionV1, { title: "Delete account", description: "No longer want to use our services? You can delete your account here. This action is not reversible." },
|
|
19
|
+
isDeleteSectionVisible && (react_1.default.createElement(vista_dashboard_setting_section_v1_1.VistaDashboardSettingSectionV1, { title: "Delete account", description: "No longer want to use our services? You can delete your account here. This action is not reversible." },
|
|
20
20
|
react_1.default.createElement("div", { className: "flex items-start md:col-span-2" },
|
|
21
|
-
react_1.default.createElement("button", { type: "submit", className: "rounded-md bg-red-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-400" }, "Yes, delete my account")))));
|
|
21
|
+
react_1.default.createElement("button", { type: "submit", className: "rounded-md bg-red-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-400" }, "Yes, delete my account"))))));
|
|
22
22
|
};
|
|
23
23
|
exports.VistaDashboardSettingV1 = VistaDashboardSettingV1;
|
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ export interface VistaDashboardHeaderTabV1Props {
|
|
|
11
11
|
export interface VistaDashboardSettingV1Props {
|
|
12
12
|
activeTab: string;
|
|
13
13
|
activeTabComponentMap: VistaDashboardHeaderTabV1Props;
|
|
14
|
+
handleDelete: () => void;
|
|
14
15
|
headerTabs: VistaDashboardTabNavigatorListItem[];
|
|
15
16
|
heading: string;
|
|
17
|
+
isDeleteSectionVisible: boolean;
|
|
16
18
|
}
|