mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-01-23 06:03:39 +03:00
e7e638443f
Updates #1577
Squashed commit of the following:
commit a07ff51fb3f1eb58ab9a922d7bc11ed1d65ef3a7
Merge: 7db696814 2f515e8d8
Author: Ildar Kamalov <ik@adguard.com>
Date: Fri Jun 23 16:50:09 2023 +0300
Merge branch 'master' into AG-22207
commit 7db696814f2134fd3a3415cbcfa0ffdac1fabda3
Author: Ildar Kamalov <ik@adguard.com>
Date: Fri Jun 23 14:57:09 2023 +0300
fix changelog
commit bf9458b3f18697ca1fc504c51fa443934f76371f
Author: Ildar Kamalov <ik@adguard.com>
Date: Fri Jun 23 14:48:20 2023 +0300
changelog
commit bc2bf3f9507957afe63a654334b6e22858d1e41b
Author: Ildar Kamalov <ik@adguard.com>
Date: Fri Jun 23 13:28:28 2023 +0300
client: handle rewrite edit
28 lines
572 B
JavaScript
28 lines
572 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
getRewritesList,
|
|
addRewrite,
|
|
deleteRewrite,
|
|
updateRewrite,
|
|
toggleRewritesModal,
|
|
} from '../actions/rewrites';
|
|
import Rewrites from '../components/Filters/Rewrites';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { rewrites } = state;
|
|
const props = { rewrites };
|
|
return props;
|
|
};
|
|
|
|
const mapDispatchToProps = {
|
|
getRewritesList,
|
|
addRewrite,
|
|
deleteRewrite,
|
|
updateRewrite,
|
|
toggleRewritesModal,
|
|
};
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps,
|
|
)(Rewrites);
|