@appcorp/fusion-storybook 0.1.52 → 0.1.54

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.
@@ -25,7 +25,7 @@ import { useTranslations } from "next-intl";
25
25
  export const EnrollmentForm = () => {
26
26
  const { state: { courseId, enabled, enrollmentDate, errors, sectionId, studentProfileId, }, handleChange, } = useEnrollmentModule();
27
27
  const t = useTranslations("enrollment");
28
- return (_jsxs("div", { className: "space-y-4", children: [_jsx("h4", { className: "text-sm font-semibold text-muted-foreground", children: t("enrollmentInformation") }), _jsx(EnhancedInput, { error: errors.enrollmentDate, id: "enrollmentDate", info: t("enrollmentDateInfo"), label: t("enrollmentDate"), onChange: (e) => handleChange("enrollmentDate", e.target.value), placeholder: t("enrollmentDatePlaceholder"), required: true, type: "date", value: enrollmentDate
28
+ return (_jsxs("div", { className: "space-y-4", children: [_jsx(EnhancedInput, { error: errors.enrollmentDate, id: "enrollmentDate", info: t("enrollmentDateInfo"), label: t("enrollmentDate"), onChange: (e) => handleChange("enrollmentDate", e.target.value), placeholder: t("enrollmentDatePlaceholder"), required: true, type: "date", value: enrollmentDate
29
29
  ? formatDate(enrollmentDate, DATE_FORMATS.YYYY_MM_DD)
30
30
  : "" }), _jsx(Separator, {}), _jsx(EnhancedCombobox, { emptyText: t("noStudentFound"), error: errors.studentProfileId, id: "studentProfileId", info: t("studentInfo"), label: t("student"), onValueChange: (value) => handleChange("studentProfileId", value), options: (getCachedStudentProfilesSync().items || []).map((s) => ({
31
31
  label: s.studentCode || s.id,
@@ -317,7 +317,7 @@ export const useExpenseModule = () => {
317
317
  deleteFetchNow === null || deleteFetchNow === void 0 ? void 0 : deleteFetchNow(undefined, {
318
318
  body: JSON.stringify({ id: row === null || row === void 0 ? void 0 : row.id }),
319
319
  });
320
- }, [t]);
320
+ }, [t, deleteFetchNow]);
321
321
  const handleFilters = useCallback(() => {
322
322
  dispatch({
323
323
  type: EXPENSE_ACTION_TYPES.SET_DRAWER,
@@ -337,7 +337,7 @@ export const useExpenseModule = () => {
337
337
  });
338
338
  listFetchNow();
339
339
  handleCloseDrawer();
340
- }, [dispatch, handleCloseDrawer]);
340
+ }, [dispatch, handleCloseDrawer, listFetchNow]);
341
341
  const clearFilters = useCallback(() => {
342
342
  dispatch({
343
343
  type: EXPENSE_ACTION_TYPES.SET_CURRENT_PAGE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",