Skip to content

Commit

Permalink
feat: add github button
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Jan 22, 2025
1 parent d2896c5 commit 650e7e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/features/editor/Toolbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from "react";
import Link from "next/link";
import { Flex, Group, Select, Button } from "@mantine/core";
import styled from "styled-components";
import toast from "react-hot-toast";
import { AiOutlineFullscreen } from "react-icons/ai";
import { FaGithub } from "react-icons/fa6";
import { FiDownload } from "react-icons/fi";
import { type FileFormat, formats } from "src/enums/file.enum";
import { SearchInput } from "src/features/editor/Toolbar/SearchInput";
Expand Down Expand Up @@ -108,6 +110,11 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
<FiDownload size="18" />
</StyledToolElement>
<ZoomMenu />
<Link href="https://github.com/AykutSarac/jsoncrack.com" rel="noopener" target="_blank">
<StyledToolElement title="GitHub">
<FaGithub size="18" />
</StyledToolElement>
</Link>
<OptionsMenu />
<StyledToolElement title="Fullscreen" $hide={isWidget} onClick={fullscreenBrowser}>
<AiOutlineFullscreen size="18" />
Expand Down

0 comments on commit 650e7e7

Please sign in to comment.