Skip to content

Commit 0cf6216

Browse files
committed
style: move GitHubHelp button to header
1 parent 71fa1ce commit 0cf6216

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/app/generator/repo-tree-generator.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type React from "react"
55
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
66

77
import AIFeedback from "@/components/ai-feedback"
8-
import GitHubHelp from "@/components/github-help"
98
import InteractiveTreeView from "@/components/interactive-tree-view"
109
import PrivateReposDialog from "@/components/private-repos-dialog"
1110
import { RepoGraphs } from "@/components/repo-graphs"
@@ -315,7 +314,6 @@ export default function RepoProjectStructure() {
315314
{repoType === "github" && (
316315
<div className="flex items-center gap-2">
317316
<PrivateReposDialog />
318-
<GitHubHelp />
319317
{hasPrivateToken && (
320318
<div className="flex items-center gap-1 text-xs text-green-600 bg-green-50 dark:bg-green-900/20 px-2 py-1 rounded">
321319
<Unlock className="h-3 w-3" />

src/components/github-help.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ export default function GitHubHelp() {
1111
return (
1212
<Dialog open={isOpen} onOpenChange={setIsOpen}>
1313
<DialogTrigger asChild>
14-
<Button variant="outline" size="sm" className="flex items-center gap-2 bg-transparent">
15-
<HelpCircle className="h-4 w-4" />
14+
<Button
15+
variant="ghost"
16+
size="sm"
17+
className="flex items-center gap-2 px-3 py-2 rounded-full bg-blue-900 text-white hover:bg-blue-700 transition-colors duration-200 ease-in-out"
18+
aria-label="Help"
19+
>
20+
<HelpCircle className="h-5 w-5" />
1621
Help
1722
</Button>
1823
</DialogTrigger>

src/components/layout/header.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Link from 'next/link';
22

33
import { FolderTreeIcon, Github } from 'lucide-react';
44

5+
import GitHubHelp from "@/components/github-help"
56
import ThemeToggle from '../theme-toggle';
67

78
const Header = () => {
@@ -16,6 +17,7 @@ const Header = () => {
1617
</h1>
1718
</Link>
1819
<nav className="flex items-center space-x-4">
20+
<GitHubHelp />
1921
<ThemeToggle />
2022
<a
2123
href="https://github.com/coder-ralph/RepoTree"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy