Skip to content

Commit

Permalink
env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sadanandpai committed Mar 11, 2024
1 parent ce29288 commit 1dd8112
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/home.cy.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe('landing page', () => {
beforeEach(() => {
cy.visit('/');
cy.visit('/#/sorting-visualizer');
});

it('should verify sorting', () => {
cy.get('[data-testid="navbar"]').should('be.visible');

cy.get('[data-testid="navbar"]').should(
'contain.html',
'Sorting visualizers'
'Sorting visualizer'
);
});
});
2 changes: 1 addition & 1 deletion cypress/e2e/sorting.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
3 changes: 0 additions & 3 deletions public/icons/home.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/icons/moon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions public/icons/sun.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/apps/path-finder/hooks/useMouseAction.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function useMouseAction(ref: React.RefObject<HTMLDivElement>) {
referenceEl.removeEventListener('mouseup', onMouseUp);
referenceEl.removeEventListener('mouseleave', onMouseUp);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ref]);

const onMouseDown = (e: MouseEvent | TouchEvent) => {
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -12,7 +13,7 @@ function Navbar({ title, menuItems }: NavbarProps) {
<nav className={classes.navbar}>
<h1 data-testid="navbar">
<Link to="/" className={classes.home}>
<img src="/icons/home.svg" alt="home" />
<Home size={24} />
</Link>
{title}
<a
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
// base: "/sorting-visualizer/dist/",
base: '/sorting-visualizer/dist/',
});

0 comments on commit 1dd8112

Please sign in to comment.