From ff3a251e75fafce7d95177010401483127973313 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 12 Apr 2022 15:48:47 +0200
Subject: chore: add a MainNavButton component

I also move the active state from the hamburger to this pseudo-button.
It makes more sense that the button handles the icon shape.
---
 src/components/molecules/buttons/main-nav-button.test.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/components/molecules/buttons/main-nav-button.test.tsx

(limited to 'src/components/molecules/buttons/main-nav-button.test.tsx')

diff --git a/src/components/molecules/buttons/main-nav-button.test.tsx b/src/components/molecules/buttons/main-nav-button.test.tsx
new file mode 100644
index 0000000..e757305
--- /dev/null
+++ b/src/components/molecules/buttons/main-nav-button.test.tsx
@@ -0,0 +1,11 @@
+import { render, screen } from '@test-utils';
+import MainNavButton from './main-nav-button';
+
+describe('MainNavButton', () => {
+  it('renders a checkbox', () => {
+    render(<MainNavButton isActive={false} setIsActive={() => null} />);
+    expect(
+      screen.getByRole('checkbox', { name: 'Open menu' })
+    ).toBeInTheDocument();
+  });
+});
-- 
cgit v1.2.3

