File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3535const 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 >
You can’t perform that action at this time.
0 commit comments