From 5d3e8a4d0c2ce2ad8f22df857ab3ce54fcfc38ac Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 3 Nov 2023 12:22:47 +0100
Subject: refactor(components): replace Toolbar with Navbar component

* remove SearchModal and SettingsModal components
* add a generic NavbarItem component (instead of the previous toolbar
items to avoid unreadable styles...)
* move FlippingLabel component logic into NavbarItem since it is only
used here
---
 src/components/organisms/toolbar/settings.test.tsx | 23 ----------------------
 1 file changed, 23 deletions(-)
 delete mode 100644 src/components/organisms/toolbar/settings.test.tsx

(limited to 'src/components/organisms/toolbar/settings.test.tsx')

diff --git a/src/components/organisms/toolbar/settings.test.tsx b/src/components/organisms/toolbar/settings.test.tsx
deleted file mode 100644
index 6dbed2b..0000000
--- a/src/components/organisms/toolbar/settings.test.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen as rtlScreen } from '../../../../tests/utils';
-import { Settings } from './settings';
-
-const doNothing = () => {
-  // do nothing
-};
-
-describe('Settings', () => {
-  it('renders a button to open settings modal', () => {
-    render(<Settings isActive={false} setIsActive={doNothing} />);
-    expect(
-      rtlScreen.getByRole('checkbox', { name: 'Open settings' })
-    ).toBeInTheDocument();
-  });
-
-  it('renders a button to close settings modal', () => {
-    render(<Settings isActive={true} setIsActive={doNothing} />);
-    expect(
-      rtlScreen.getByRole('checkbox', { name: 'Close settings' })
-    ).toBeInTheDocument();
-  });
-});
-- 
cgit v1.2.3

