@appcorp/fusion-storybook 0.1.45 → 0.1.47
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/base-modules/admission/context.js +1 -0
- package/base-modules/admission/view.js +1 -1
- package/base-modules/class/context.js +1 -0
- package/base-modules/discount-code/context.js +1 -0
- package/base-modules/expense/context.js +1 -0
- package/base-modules/section/context.js +1 -0
- package/base-modules/student-fee/context.js +1 -0
- package/base-modules/student-profile/context.js +1 -0
- package/base-modules/subject/context.js +1 -0
- package/base-modules/teacher/context.js +1 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -19,7 +19,7 @@ import { useTranslations } from "next-intl";
|
|
|
19
19
|
import { formatValue } from "../../utils/format-value";
|
|
20
20
|
import { formatDate, DATE_FORMATS } from "@react-pakistan/util-functions";
|
|
21
21
|
import { getCachedWorkspaceSync } from "../workspace/cache";
|
|
22
|
-
import { ADMISSION_STATUS } from "
|
|
22
|
+
import { ADMISSION_STATUS } from "../../type";
|
|
23
23
|
export const AdmissionView = () => {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
const { state, handleAnalyze } = useAdmissionModule();
|
|
@@ -360,6 +360,7 @@ export const useDiscountCodeModule = () => {
|
|
|
360
360
|
handleOnClick: handleDelete,
|
|
361
361
|
label: t("rowActionsDelete"),
|
|
362
362
|
order: 3,
|
|
363
|
+
variant: "destructive",
|
|
363
364
|
},
|
|
364
365
|
], [handleView, handleEdit, handleDelete, t]);
|
|
365
366
|
const applyFilters = useCallback(() => {
|
|
@@ -435,6 +435,7 @@ export const useExpenseModule = () => {
|
|
|
435
435
|
handleOnClick: handleDelete,
|
|
436
436
|
label: t("rowActionsDelete"),
|
|
437
437
|
order: 3,
|
|
438
|
+
variant: "destructive",
|
|
438
439
|
},
|
|
439
440
|
], [handleView, handleEdit, handleDelete, t]);
|
|
440
441
|
// ============================================================================
|
|
@@ -636,6 +636,7 @@ export const useStudentFeeModule = () => {
|
|
|
636
636
|
handleOnClick: handleDelete,
|
|
637
637
|
label: t("rowActionsDelete"),
|
|
638
638
|
order: 3,
|
|
639
|
+
variant: "destructive",
|
|
639
640
|
},
|
|
640
641
|
], [handleView, handleEdit, handleDelete, t]);
|
|
641
642
|
// ============================================================================
|
|
@@ -534,6 +534,7 @@ export const useStudentProfileModule = () => {
|
|
|
534
534
|
handleOnClick: (row) => handleDelete(row),
|
|
535
535
|
label: t("rowActionsDelete"),
|
|
536
536
|
order: 3,
|
|
537
|
+
variant: "destructive",
|
|
537
538
|
},
|
|
538
539
|
{
|
|
539
540
|
enabled: (row) => (row === null || row === void 0 ? void 0 : row.status) === STUDENT_STATUS.ACTIVE,
|
|
@@ -412,6 +412,7 @@ export const useTeacherModule = () => {
|
|
|
412
412
|
icon: Trash2,
|
|
413
413
|
label: t("rowActionsDelete"),
|
|
414
414
|
order: 3,
|
|
415
|
+
variant: "destructive",
|
|
415
416
|
},
|
|
416
417
|
], [handleView, handleEdit, handleDelete, t]);
|
|
417
418
|
// ============================================================================
|