Bug Fixing

This commit is contained in:
2022-01-25 09:59:57 +07:00
parent f6cc7ee359
commit 198063a7d9
12 changed files with 177 additions and 456 deletions

View File

@@ -35,8 +35,7 @@ import { capitalize } from "lodash";
import { PAYBACK_STATUS } from "../../constants/payback";
import moment from "moment";
const { Search } = Input;
const { RangePicker } = DatePicker;
export const Payback = observer(() => {
const { Option } = Select;
const { Title } = Typography;
@@ -245,17 +244,7 @@ export const Payback = observer(() => {
modalLoader.setLoading(false);
store.payback.visibleModalFilterPayback = false;
};
const handleFilterCategory = async (value) => {
if (value) {
store.product.filterCategory = value;
await store.product.getDataSubCategories();
} else {
store.product.filterCategory = null;
await store.product.getDataSubCategories();
}
};
const footerLayoutFilter = [
<Button
key={"remove"}

View File

@@ -28,11 +28,8 @@ import { appConfig } from "../../config/app";
import { PAYBACK_STATUS } from "../../constants/payback";
import moment from "moment";
const { Search } = Input;
export const PaybackCreated = observer(() => {
const { Option } = Select;
const { Title } = Typography;
const [form] = Form.useForm();
const store = useStore();
const [filterMembership, setFilterMembership] = useState([]);
@@ -167,16 +164,6 @@ export const PaybackCreated = observer(() => {
store.payback.visibleModalFilterCreate = false;
};
// const handleFilterCategory = async (value) => {
// if (value) {
// store.product.filterCategory = value;
// await store.product.getDataSubCategories();
// } else {
// store.product.filterCategory = null;
// await store.product.getDataSubCategories();
// }
// };
const footerLayoutFilter = [
<Button
key={"remove"}