| import { ArrowButton } from "../../../components/Buttons/ArrowButton/ArrowButton"; | import { ArrowButton } from "../../../components/Buttons/ArrowButton/ArrowButton"; | ||||
| import history from "../../../store/utils/history"; | import history from "../../../store/utils/history"; | ||||
| import { toggleCreateCategoryModal } from "../../../store/actions/modal/modalActions"; | import { toggleCreateCategoryModal } from "../../../store/actions/modal/modalActions"; | ||||
| import { ADD_TYPE } from "../../../constants/adminMethodConstants"; | |||||
| import { SUBCATEGORIES_TYPE } from "../../../constants/adminTypeConstants"; | |||||
| const AdminSubcategoriesPage = () => { | const AdminSubcategoriesPage = () => { | ||||
| const { t } = useTranslation(); | const { t } = useTranslation(); | ||||
| dispatch( | dispatch( | ||||
| toggleCreateCategoryModal({ | toggleCreateCategoryModal({ | ||||
| hideImagePicker: true, | hideImagePicker: true, | ||||
| type: "locations", | |||||
| method: "add", | |||||
| type: SUBCATEGORIES_TYPE, | |||||
| method: ADD_TYPE, | |||||
| showSecondButton: true, | showSecondButton: true, | ||||
| }) | }) | ||||
| ); | ); |