From 8daeb222058346772fef8f57d663672d062c7f77 Mon Sep 17 00:00:00 2001 From: Kot Anton <707myemail@gmail.com> Date: Wed, 25 Dec 2024 22:06:00 -0500 Subject: [PATCH] created allert slice and updated some messages --- src/App.js | 4 ++- src/components/alertMessage/Alert.jsx | 28 +++++++++++++++++++ .../bookListSection/BookListSection.jsx | 8 +++--- src/components/error/Error.jsx | 5 ++-- .../ManualAddBookSection.jsx | 5 ++-- .../randomBookSection/RandomBookSection.jsx | 9 +++--- .../randomBookModal/RandomBookModal.jsx | 4 +-- src/redux/slices/alertSlice.js | 22 +++++++++++++++ src/redux/slices/booksSlice.js | 1 + src/redux/store.js | 2 ++ 10 files changed, 72 insertions(+), 16 deletions(-) create mode 100644 src/components/alertMessage/Alert.jsx create mode 100644 src/redux/slices/alertSlice.js diff --git a/src/App.js b/src/App.js index 6d33c02..30825b6 100644 --- a/src/App.js +++ b/src/App.js @@ -8,13 +8,14 @@ import SearchBookSection from './components/searchBookSection/SearchBookSection' import RandomBookSection from './components/randomBookSection/RandomBookSection' import BookListSection from './components/bookListSection/BookListSection' import Header from './components/header/Header' +import Footer from './components/footer/Footer' import Login from './components/user/login/Login' import Signup from './components/user/signup/Signup' import Error from './components/error/Error' +import Alert from './components/alertMessage/Alert' import { syncLoadBook } from './redux/slices/booksSlice' import { auth } from './api/services/firebaseConfig' import './App.css' -import Footer from './components/footer/Footer' function App() { const dispatch = useDispatch() @@ -60,6 +61,7 @@ function App() {