Skip to content

Commit 650e7e7

Browse files
committed
feat: add github button
1 parent d2896c5 commit 650e7e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/features/editor/Toolbar/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React from "react";
2+
import Link from "next/link";
23
import { Flex, Group, Select, Button } from "@mantine/core";
34
import styled from "styled-components";
45
import toast from "react-hot-toast";
56
import { AiOutlineFullscreen } from "react-icons/ai";
7+
import { FaGithub } from "react-icons/fa6";
68
import { FiDownload } from "react-icons/fi";
79
import { type FileFormat, formats } from "src/enums/file.enum";
810
import { SearchInput } from "src/features/editor/Toolbar/SearchInput";
@@ -108,6 +110,11 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
108110
<FiDownload size="18" />
109111
</StyledToolElement>
110112
<ZoomMenu />
113+
<Link href="https://github.com/AykutSarac/jsoncrack.com" rel="noopener" target="_blank">
114+
<StyledToolElement title="GitHub">
115+
<FaGithub size="18" />
116+
</StyledToolElement>
117+
</Link>
111118
<OptionsMenu />
112119
<StyledToolElement title="Fullscreen" $hide={isWidget} onClick={fullscreenBrowser}>
113120
<AiOutlineFullscreen size="18" />

0 commit comments

Comments
 (0)