redux ducks

This commit is contained in:
2020-10-13 14:37:25 +03:00
parent a2b629a850
commit d545e3e65e
23 changed files with 124 additions and 114 deletions
+2 -3
View File
@@ -7,8 +7,8 @@ import Loading from "../../ui/Loading";
import NovelItem from "../../ui/NovelItem/NovelItem";
import {connect} from "react-redux";
import Button from "../../ui/Button/Button";
import {addNotification} from "../../store/actions";
import NotificationMessage from "../../ui/Notifications/NotificationMessage";
import {addNotification} from "../../store/ducks/notifications";
type Props = {
match: { params: { userId: string } }
@@ -69,8 +69,7 @@ class User extends React.Component<Props, State> {
</NotificationMessage>
);
this.props.addNotification(notification);
})
});
}
render() {