Fix import list typos

This commit is contained in:
Bogdan 2024-08-10 23:59:13 +03:00
parent 9e7c74c2ac
commit 5d233b4607
5 changed files with 22 additions and 22 deletions

View File

@ -58,7 +58,7 @@ const COLUMNS = [
}, },
]; ];
function createImportListExlucionsSelector() { function createImportListExclusionsSelector() {
return createSelector( return createSelector(
(state: AppState) => state.settings.importListExclusions, (state: AppState) => state.settings.importListExclusions,
(importListExclusions) => { (importListExclusions) => {
@ -85,7 +85,7 @@ function ImportListExclusions() {
totalRecords, totalRecords,
isDeleting, isDeleting,
deleteError, deleteError,
} = useSelector(createImportListExlucionsSelector()); } = useSelector(createImportListExclusionsSelector());
const dispatch = useDispatch(); const dispatch = useDispatch();

View File

@ -7,7 +7,7 @@ import PageToolbarSeparator from 'Components/Page/Toolbar/PageToolbarSeparator';
import { icons } from 'Helpers/Props'; import { icons } from 'Helpers/Props';
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector'; import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
import translate from 'Utilities/String/translate'; import translate from 'Utilities/String/translate';
import ImportListsExclusions from './ImportListExclusions/ImportListExclusions'; import ImportListExclusions from './ImportListExclusions/ImportListExclusions';
import ImportListsConnector from './ImportLists/ImportListsConnector'; import ImportListsConnector from './ImportLists/ImportListsConnector';
import ManageImportListsModal from './ImportLists/Manage/ManageImportListsModal'; import ManageImportListsModal from './ImportLists/Manage/ManageImportListsModal';
import ImportListOptions from './Options/ImportListOptions'; import ImportListOptions from './Options/ImportListOptions';
@ -113,7 +113,8 @@ class ImportListSettings extends Component {
onChildStateChange={this.onChildStateChange} onChildStateChange={this.onChildStateChange}
/> />
<ImportListsExclusions /> <ImportListExclusions />
<ManageImportListsModal <ManageImportListsModal
isOpen={isManageImportListsOpen} isOpen={isManageImportListsOpen}
onModalClose={this.onManageImportListsModalClose} onModalClose={this.onManageImportListsModalClose}

View File

@ -21,7 +21,7 @@ const mapDispatchToProps = {
fetchRootFolders fetchRootFolders
}; };
class ListsConnector extends Component { class ImportListsConnector extends Component {
// //
// Lifecycle // Lifecycle
@ -51,10 +51,10 @@ class ListsConnector extends Component {
} }
} }
ListsConnector.propTypes = { ImportListsConnector.propTypes = {
fetchImportLists: PropTypes.func.isRequired, fetchImportLists: PropTypes.func.isRequired,
deleteImportList: PropTypes.func.isRequired, deleteImportList: PropTypes.func.isRequired,
fetchRootFolders: PropTypes.func.isRequired fetchRootFolders: PropTypes.func.isRequired
}; };
export default connect(createMapStateToProps, mapDispatchToProps)(ListsConnector); export default connect(createMapStateToProps, mapDispatchToProps)(ImportListsConnector);

View File

@ -48,7 +48,6 @@ interface ImportListOptionsPageProps {
function ImportListOptions(props: ImportListOptionsPageProps) { function ImportListOptions(props: ImportListOptionsPageProps) {
const { setChildSave, onChildStateChange } = props; const { setChildSave, onChildStateChange } = props;
const selected = useSelector(createImportListOptionsSelector());
const { const {
isSaving, isSaving,
@ -58,7 +57,7 @@ function ImportListOptions(props: ImportListOptionsPageProps) {
error, error,
settings, settings,
hasSettings, hasSettings,
} = selected; } = useSelector(createImportListOptionsSelector());
const { listSyncLevel, listSyncTag } = settings; const { listSyncLevel, listSyncTag } = settings;

View File

@ -20,19 +20,19 @@ const section = 'settings.importLists';
// //
// Actions Types // Actions Types
export const FETCH_IMPORT_LISTS = 'settings/importlists/fetchImportLists'; export const FETCH_IMPORT_LISTS = 'settings/importLists/fetchImportLists';
export const FETCH_IMPORT_LIST_SCHEMA = 'settings/importlists/fetchImportListSchema'; export const FETCH_IMPORT_LIST_SCHEMA = 'settings/importLists/fetchImportListSchema';
export const SELECT_IMPORT_LIST_SCHEMA = 'settings/importlists/selectImportListSchema'; export const SELECT_IMPORT_LIST_SCHEMA = 'settings/importLists/selectImportListSchema';
export const SET_IMPORT_LIST_VALUE = 'settings/importlists/setImportListValue'; export const SET_IMPORT_LIST_VALUE = 'settings/importLists/setImportListValue';
export const SET_IMPORT_LIST_FIELD_VALUE = 'settings/importlists/setImportListFieldValue'; export const SET_IMPORT_LIST_FIELD_VALUE = 'settings/importLists/setImportListFieldValue';
export const SAVE_IMPORT_LIST = 'settings/importlists/saveImportList'; export const SAVE_IMPORT_LIST = 'settings/importLists/saveImportList';
export const CANCEL_SAVE_IMPORT_LIST = 'settings/importlists/cancelSaveImportList'; export const CANCEL_SAVE_IMPORT_LIST = 'settings/importLists/cancelSaveImportList';
export const DELETE_IMPORT_LIST = 'settings/importlists/deleteImportList'; export const DELETE_IMPORT_LIST = 'settings/importLists/deleteImportList';
export const TEST_IMPORT_LIST = 'settings/importlists/testImportList'; export const TEST_IMPORT_LIST = 'settings/importLists/testImportList';
export const CANCEL_TEST_IMPORT_LIST = 'settings/importlists/cancelTestImportList'; export const CANCEL_TEST_IMPORT_LIST = 'settings/importLists/cancelTestImportList';
export const TEST_ALL_IMPORT_LISTS = 'settings/importlists/testAllImportLists'; export const TEST_ALL_IMPORT_LISTS = 'settings/importLists/testAllImportLists';
export const BULK_EDIT_IMPORT_LISTS = 'settings/importlists/bulkEditImportLists'; export const BULK_EDIT_IMPORT_LISTS = 'settings/importLists/bulkEditImportLists';
export const BULK_DELETE_IMPORT_LISTS = 'settings/importlists/bulkDeleteImportLists'; export const BULK_DELETE_IMPORT_LISTS = 'settings/importLists/bulkDeleteImportLists';
// //
// Action Creators // Action Creators