Skip to content

Commit

Permalink
deleted comments and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
anettgor committed Apr 30, 2023
1 parent 490e09e commit 4696d0f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions src/components/ContactList/ContactList.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import css from './ContactList.module.css';

import { deleteContact } from './../../redux/operations';
import { useSelector, useDispatch } from 'react-redux';
import { getStatusFilter, getContacts } from './../../redux/selectors';

export const ContactList = () => {
// const contacts = useSelector(loadContacts);
const filter = useSelector(getStatusFilter);

const filteredContacts = useSelector(getContacts).filter(contact => {
Expand Down
11 changes: 0 additions & 11 deletions src/redux/actions.js

This file was deleted.

1 change: 0 additions & 1 deletion src/redux/contactsSlice.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createSlice } from '@reduxjs/toolkit';
// Importujemy operację
import { fetchContacts, addContact, deleteContact } from './operations';
const handleRejected = (state, action) => {
state.error = action.payload;
Expand Down
11 changes: 0 additions & 11 deletions src/redux/operations.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// import { setStatusFilter } from './actions';
// import { createReducer } from '@reduxjs/toolkit';
import axios from 'axios';
import { createAsyncThunk } from '@reduxjs/toolkit';

Expand Down Expand Up @@ -43,12 +41,3 @@ export const deleteContact = createAsyncThunk(
}
}
);

//delete
// const filterInitialState = '';

// export const filterReducer = createReducer(filterInitialState, {
// [setStatusFilter]: (state, action) => {
// return (state = action.payload);
// },
// });

0 comments on commit 4696d0f

Please sign in to comment.