Frontend rewritten in TypeScript, added Node 18 support
This commit is contained in:
34
client/src/containers/DnsAllowlist.ts
Normal file
34
client/src/containers/DnsAllowlist.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
setRules,
|
||||
getFilteringStatus,
|
||||
addFilter,
|
||||
removeFilter,
|
||||
toggleFilterStatus,
|
||||
toggleFilteringModal,
|
||||
refreshFilters,
|
||||
handleRulesChange,
|
||||
editFilter,
|
||||
} from '../actions/filtering';
|
||||
|
||||
import DnsAllowlist from '../components/Filters/DnsAllowlist';
|
||||
|
||||
const mapStateToProps = (state: any) => {
|
||||
const { filtering } = state;
|
||||
const props = { filtering };
|
||||
return props;
|
||||
};
|
||||
|
||||
const mapDispatchToProps = {
|
||||
setRules,
|
||||
getFilteringStatus,
|
||||
addFilter,
|
||||
removeFilter,
|
||||
toggleFilterStatus,
|
||||
toggleFilteringModal,
|
||||
refreshFilters,
|
||||
handleRulesChange,
|
||||
editFilter,
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(DnsAllowlist);
|
||||
Reference in New Issue
Block a user