| @@ -27,6 +27,8 @@ import { adminSortMethod } from "../../../util/helpers/adminSortHelper"; | |||
| import { ArrowButton } from "../../../components/Buttons/ArrowButton/ArrowButton"; | |||
| import history from "../../../store/utils/history"; | |||
| import { toggleCreateCategoryModal } from "../../../store/actions/modal/modalActions"; | |||
| import { ADD_TYPE } from "../../../constants/adminMethodConstants"; | |||
| import { SUBCATEGORIES_TYPE } from "../../../constants/adminTypeConstants"; | |||
| const AdminSubcategoriesPage = () => { | |||
| const { t } = useTranslation(); | |||
| @@ -70,8 +72,8 @@ const AdminSubcategoriesPage = () => { | |||
| dispatch( | |||
| toggleCreateCategoryModal({ | |||
| hideImagePicker: true, | |||
| type: "locations", | |||
| method: "add", | |||
| type: SUBCATEGORIES_TYPE, | |||
| method: ADD_TYPE, | |||
| showSecondButton: true, | |||
| }) | |||
| ); | |||