diff --git a/cypress/e2e/home.cy.ts b/cypress/e2e/home.cy.ts index 0366285..448f5eb 100644 --- a/cypress/e2e/home.cy.ts +++ b/cypress/e2e/home.cy.ts @@ -1,6 +1,6 @@ describe('landing page', () => { beforeEach(() => { - cy.visit('/'); + cy.visit('/#/sorting-visualizer'); }); it('should verify sorting', () => { @@ -8,7 +8,7 @@ describe('landing page', () => { cy.get('[data-testid="navbar"]').should( 'contain.html', - 'Sorting visualizers' + 'Sorting visualizer' ); }); }); diff --git a/cypress/e2e/sorting.cy.ts b/cypress/e2e/sorting.cy.ts index b456770..87816c5 100644 --- a/cypress/e2e/sorting.cy.ts +++ b/cypress/e2e/sorting.cy.ts @@ -49,7 +49,7 @@ function verifySorting(inputArrayText: string, inputArrayTextSorted: string) { describe('sorting', () => { beforeEach(() => { - cy.visit('/'); + cy.visit('/#/sorting-visualizer'); }); it('should verify sorting for known array', () => { diff --git a/public/icons/home.svg b/public/icons/home.svg deleted file mode 100644 index 0527c34..0000000 --- a/public/icons/home.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/public/icons/moon.svg b/public/icons/moon.svg deleted file mode 100644 index 4b1f21a..0000000 --- a/public/icons/moon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/icons/sun.svg b/public/icons/sun.svg deleted file mode 100644 index 3634a20..0000000 --- a/public/icons/sun.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/apps/path-finder/hooks/useMouseAction.hook.ts b/src/apps/path-finder/hooks/useMouseAction.hook.ts index 9ec9438..c323da6 100644 --- a/src/apps/path-finder/hooks/useMouseAction.hook.ts +++ b/src/apps/path-finder/hooks/useMouseAction.hook.ts @@ -21,7 +21,6 @@ function useMouseAction(ref: React.RefObject) { referenceEl.removeEventListener('mouseup', onMouseUp); referenceEl.removeEventListener('mouseleave', onMouseUp); }; - // eslint-disable-next-line react-hooks/exhaustive-deps }, [ref]); const onMouseDown = (e: MouseEvent | TouchEvent) => { diff --git a/src/lib/components/navbar/navbar.tsx b/src/lib/components/navbar/navbar.tsx index 07762ca..0a29e89 100644 --- a/src/lib/components/navbar/navbar.tsx +++ b/src/lib/components/navbar/navbar.tsx @@ -4,6 +4,7 @@ import { NavbarProps } from '@/apps/sorting-visualizer/models/interfaces'; import classes from './navbar.module.scss'; import hamIcon from '/icons/ham.svg'; import { useState } from 'react'; +import { Home } from 'lucide-react'; function Navbar({ title, menuItems }: NavbarProps) { const [toggle, setToggle] = useState(false); @@ -12,7 +13,7 @@ function Navbar({ title, menuItems }: NavbarProps) {