@appcorp/fusion-storybook 0.1.97 → 0.1.99

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.
@@ -119,6 +119,7 @@ export const useFeeStructureModule = () => {
119
119
  });
120
120
  }, [theme]);
121
121
  const resetFormAndCloseDrawer = useCallback(() => {
122
+ dispatch({ type: FEE_STRUCTURE_ACTION_TYPES.RESET_FORM });
122
123
  dispatch({
123
124
  type: FEE_STRUCTURE_ACTION_TYPES.SET_ERRORS,
124
125
  payload: { errors: {} },
@@ -138,6 +138,7 @@ export const useSchoolModule = () => {
138
138
  });
139
139
  }, [theme]);
140
140
  const resetFormAndCloseDrawer = useCallback(() => {
141
+ dispatch({ type: SCHOOL_ACTION_TYPES.RESET_FORM });
141
142
  dispatch({
142
143
  type: SCHOOL_ACTION_TYPES.SET_ERRORS,
143
144
  payload: { errors: {} },
@@ -161,6 +161,7 @@ export const useStudentFeeModule = () => {
161
161
  });
162
162
  }, [theme]);
163
163
  const resetFormAndCloseDrawer = useCallback(() => {
164
+ dispatch({ type: STUDENT_FEE_ACTION_TYPES.RESET_FORM });
164
165
  dispatch({
165
166
  type: STUDENT_FEE_ACTION_TYPES.SET_ERRORS,
166
167
  payload: { errors: {} },
@@ -175,6 +175,7 @@ export const useStudentProfileModule = () => {
175
175
  });
176
176
  }, [theme]);
177
177
  const resetFormAndCloseDrawer = useCallback(() => {
178
+ dispatch({ type: STUDENT_PROFILE_ACTION_TYPES.RESET_FORM });
178
179
  dispatch({
179
180
  type: STUDENT_PROFILE_ACTION_TYPES.SET_ERRORS,
180
181
  payload: { errors: {} },
@@ -125,6 +125,7 @@ export const useSubjectModule = () => {
125
125
  });
126
126
  }, [theme]);
127
127
  const resetFormAndCloseDrawer = useCallback(() => {
128
+ dispatch({ type: SUBJECT_ACTION_TYPES.RESET_FORM });
128
129
  dispatch({
129
130
  type: SUBJECT_ACTION_TYPES.SET_ERRORS,
130
131
  payload: { errors: {} },
@@ -158,6 +158,7 @@ export const useTeacherModule = () => {
158
158
  });
159
159
  }, [theme]);
160
160
  const resetFormAndCloseDrawer = useCallback(() => {
161
+ dispatch({ type: TEACHER_ACTION_TYPES.RESET_FORM });
161
162
  dispatch({
162
163
  type: TEACHER_ACTION_TYPES.SET_ERRORS,
163
164
  payload: { errors: {} },
@@ -132,6 +132,7 @@ export const useUserModule = () => {
132
132
  });
133
133
  }, [theme]);
134
134
  const resetFormAndCloseDrawer = useCallback(() => {
135
+ dispatch({ type: USER_ACTION_TYPES.RESET_FORM });
135
136
  dispatch({
136
137
  type: USER_ACTION_TYPES.SET_ERRORS,
137
138
  payload: { errors: {} },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.1.97",
3
+ "version": "0.1.99",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",