diff --git a/src/app/__tests__/App.test.jsx b/src/app/__tests__/App.test.jsx
index e840297..7234aee 100644
--- a/src/app/__tests__/App.test.jsx
+++ b/src/app/__tests__/App.test.jsx
@@ -1,7 +1,4 @@
-import {
- screen,
- waitFor,
-} from '@testing-library/react';
+import { screen, waitFor, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import React from 'react';
@@ -40,7 +37,10 @@ test('Clear all data', async () => {
expect(screen.queryByText('Mitologia')).not.toBeInTheDocument();
});
// go back to dashboard page
- await userEvent.click(screen.getByText(/dashboard/i), leftClick);
+ await userEvent.click(
+ within(screen.getByRole('menu')).getByText(/books/i),
+ leftClick,
+ );
expect(screen.queryByText(/Chłopi/i)).not.toBeInTheDocument();
expect(screen.queryByText('Mitologia')).not.toBeInTheDocument();
});
diff --git a/src/app/features/clippings/highlights/HighlightsList.jsx b/src/app/features/clippings/highlights/HighlightsList.jsx
index 2c6a190..d677b90 100644
--- a/src/app/features/clippings/highlights/HighlightsList.jsx
+++ b/src/app/features/clippings/highlights/HighlightsList.jsx
@@ -4,7 +4,7 @@ import { Pagination } from 'semantic-ui-react';
import HighlightItem from './HighlightItem';
import { Content, Footer, MainHeader, Title, Wrapper } from './HighlightsList.style';
-const HighlightsList = ({ title, highlights, isBookView }) => {
+const HighlightsList = ({ title, highlights, bookInfoVisible }) => {
const [activePage, setActivePage] = useState(1);
const wrapperRef = useRef();
@@ -33,7 +33,7 @@ const HighlightsList = ({ title, highlights, isBookView }) => {
))}
diff --git a/src/app/features/clippings/highlights/deleted/DeletedPage.jsx b/src/app/features/clippings/highlights/deleted/DeletedPage.jsx
index 0a688bf..a17aa54 100644
--- a/src/app/features/clippings/highlights/deleted/DeletedPage.jsx
+++ b/src/app/features/clippings/highlights/deleted/DeletedPage.jsx
@@ -20,7 +20,7 @@ const DeletedPage = () => {
deleted: q[1].deleted,
}));
- return ;
+ return ;
};
export default DeletedPage;
diff --git a/src/app/features/clippings/highlights/favourites/FavouritesPage.jsx b/src/app/features/clippings/highlights/favourites/FavouritesPage.jsx
index f4dba59..60db124 100644
--- a/src/app/features/clippings/highlights/favourites/FavouritesPage.jsx
+++ b/src/app/features/clippings/highlights/favourites/FavouritesPage.jsx
@@ -20,7 +20,7 @@ const FavouritesPage = () => {
deleted: q[1].deleted,
}));
- return ;
+ return ;
};
export default FavouritesPage;
diff --git a/src/app/features/clippings/highlights/highlights/HighlightsPage.jsx b/src/app/features/clippings/highlights/highlights/HighlightsPage.jsx
index dcfb4c4..67e343a 100644
--- a/src/app/features/clippings/highlights/highlights/HighlightsPage.jsx
+++ b/src/app/features/clippings/highlights/highlights/HighlightsPage.jsx
@@ -36,7 +36,7 @@ const HighlightsPage = () => {
);
};
diff --git a/src/app/layout/sidebar/Sidebar.jsx b/src/app/layout/sidebar/Sidebar.jsx
index d8a30a5..2177dc7 100644
--- a/src/app/layout/sidebar/Sidebar.jsx
+++ b/src/app/layout/sidebar/Sidebar.jsx
@@ -28,7 +28,7 @@ const Sidebar = () => {
dispatch(setActiveSidebarItem(name));
return (
-
+