Skip to content

Commit 646582c

Browse files
committed
Hide star count display from GitHub button
1 parent 255c711 commit 646582c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

App.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@ function optionsEqual(a: ProcessOptions, b: ProcessOptions): boolean {
3131
a.edge_detection_quantization_method === b.edge_detection_quantization_method;
3232
}
3333

34-
// GitHub button with star count and version and version
34+
// GitHub button with version
3535
const GitHubButton: React.FC = () => {
3636
const [stars, setStars] = useState<number | null>(null);
3737
const [showTooltip, setShowTooltip] = useState(false);
3838
const version = typeof __APP_VERSION__ !== 'undefined' ? __APP_VERSION__ : 'dev';
3939

40+
// Set to true to show star count, false to hide it
41+
const showStars = false;
42+
4043
useEffect(() => {
4144
// Fetch star count from GitHub API
4245
fetch('https://api.github.com/repos/univeous/Pixel-Extractor')
@@ -62,7 +65,7 @@ const GitHubButton: React.FC = () => {
6265
className="flex items-center gap-1.5 p-2 rounded-lg text-sm text-gray-400 hover:text-gray-300 hover:bg-[#3e3e42] transition-colors"
6366
>
6467
<Icons.GitHub />
65-
{stars !== null && (
68+
{showStars && stars !== null && (
6669
<>
6770
<span className="text-yellow-400"></span>
6871
<span>{stars}</span>

0 commit comments

Comments
 (0)