Skip to content

Commit

Permalink
Joel/ref/remove chakra UI dependencies (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel-leal authored Oct 23, 2024
1 parent 0d03841 commit a5fb8a9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"prepare": "lefthook install"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/layout": "^2.3.1",
"@chakra-ui/next-js": "^2.2.0",
"@chakra-ui/react": "^2.10.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import { CloseIcon, HamburgerIcon } from "@chakra-ui/icons";
import { useState } from "react";

import { Logo } from "@packages/components/icons";
Expand All @@ -11,6 +10,8 @@ import { LocalizedText, WithLocalizedText } from "@packages/locale/context";
import SocialIconLinks from "./SocialIconLinks";
import ToggleLanguage from "./ToggleLanguage";
import ToggleThemeButton from "./ToggleThemeButton";
import { CloseIcon } from "./icons/CloseIcon";
import { HamburgerIcon } from "./icons/HamburgerIcon";

const communityLinks = [
<Link key="team" href={links.team}>
Expand Down
19 changes: 19 additions & 0 deletions packages/components/icons/CloseIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { TechIcon, type TechIconProps } from "./TechIcon";

export const CloseIcon = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
xmlSpace="preserve"
viewBox="0 0 24 24"
width="15"
role="img"
aria-label="Close icon"
>
<path
fill="currentColor"
d="M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"
/>
</svg>
);
};
17 changes: 17 additions & 0 deletions packages/components/icons/HamburgerIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const HamburgerIcon = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
xmlSpace="preserve"
viewBox="0 0 24 24"
width="15"
role="img"
aria-label="Hamburger icon"
>
<path
fill="currentColor"
d="M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"
/>
</svg>
);
};

1 comment on commit a5fb8a9

@vercel
Copy link

@vercel vercel bot commented on a5fb8a9 Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.